renamed all modules
This commit is contained in:
29
testdata/src/main/java/iri/JLRCNewInstance2.java
vendored
Normal file
29
testdata/src/main/java/iri/JLRCNewInstance2.java
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
package iri;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
public class JLRCNewInstance2 extends FormattingHelper {
|
||||
|
||||
public JLRCNewInstance2() {
|
||||
}
|
||||
|
||||
public JLRCNewInstance2(String s) {
|
||||
|
||||
}
|
||||
|
||||
public String run() throws Exception {
|
||||
Method m = Constructor.class.getMethod("newInstance", Object[].class);
|
||||
Constructor<JLRCNewInstance2> c = JLRCNewInstance2.class.getDeclaredConstructor(String.class);
|
||||
JLRCNewInstance2 a = (JLRCNewInstance2) m.invoke(c, new Object[] { new Object[] { "abc" } });
|
||||
return a.toString();
|
||||
}
|
||||
|
||||
public static void main(String[] argv) throws Exception {
|
||||
System.out.println(new JLRCNewInstance2().run());
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "instance";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user