mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 19:21:16 +07:00
13 lines
290 B
Java
13 lines
290 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.findStaticGetter(Test.class, "ourInt", int.class);
|
|
}
|
|
}
|
|
|
|
class Test {
|
|
public static int ourInt;
|
|
} |