mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
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.findStaticSetter(Test.class, "ourInt", <caret>String.class);
|
|
}
|
|
}
|
|
|
|
class Test {
|
|
public static int ourInt;
|
|
} |