mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-29 08:20:55 +07:00
13 lines
307 B
Java
13 lines
307 B
Java
// "Replace with 'findStaticVarHandle'" "true-preview"
|
|
import java.lang.invoke.*;
|
|
|
|
public class Main {
|
|
void foo() throws Throwable {
|
|
MethodHandles.Lookup lookup = MethodHandles.lookup();
|
|
lookup.findStaticVarHandle(Test.class, "ourInt", int.class);
|
|
}
|
|
}
|
|
|
|
class Test {
|
|
public static int ourInt;
|
|
} |