mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 04:07:30 +07:00
#IDEA-373584 Fixed GitOrigin-RevId: b9a2862766d62df666202694fa0be39d2625777c
14 lines
507 B
Java
14 lines
507 B
Java
class Constructors {
|
|
class X {
|
|
X() {}
|
|
X(String a) {}
|
|
}
|
|
|
|
public void testConstructor() throws Exception {
|
|
X.class.getDeclaredConstructor<warning descr="Cannot resolve constructor with specified argument types">()</warning>;
|
|
X.class.getDeclaredConstructor<warning descr="Cannot resolve constructor with specified argument types">(String.class)</warning>;
|
|
|
|
X.class.getDeclaredConstructor(Constructors.class);
|
|
X.class.getDeclaredConstructor(Constructors.class, String.class);
|
|
}
|
|
} |