mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 20:33:31 +07:00
GitOrigin-RevId: 6b6405ee4491ad1d58947547c40df6fb2d291ab7
13 lines
300 B
Java
13 lines
300 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", <caret>String.class);
|
|
}
|
|
}
|
|
|
|
class Test {
|
|
public static int ourInt;
|
|
} |