mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-12 13:07:01 +07:00
Ad-hoc check for varargs could fail, as reported in IDEA-257674 GitOrigin-RevId: d09045b241382441a348450767ce9a03f97f5734
14 lines
370 B
Java
14 lines
370 B
Java
import java.lang.reflect.Method;
|
|
|
|
// IDEA-257674
|
|
class ABC {
|
|
public static void method(String arg, int num) {
|
|
System.out.println(arg + " " + num);
|
|
}
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
Method m = ABC.class.getMethod("method", String.class, int.class);
|
|
Object o = new Object[] {"123", 124};
|
|
m.invoke(null, (Object[]) o);
|
|
}
|
|
} |