mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-19 11:14:32 +07:00
dd689d3a39
GitOrigin-RevId: 6b6405ee4491ad1d58947547c40df6fb2d291ab7
13 lines
278 B
Java
13 lines
278 B
Java
// "Change type to 'int'" "true-preview"
|
|
import java.lang.invoke.*;
|
|
|
|
public class Main {
|
|
void foo() throws Throwable {
|
|
MethodHandles.Lookup lookup = MethodHandles.lookup();
|
|
lookup.findVarHandle(Test.class, "myInt", int.class);
|
|
}
|
|
}
|
|
|
|
class Test {
|
|
public int myInt;
|
|
} |