4022982760
It's need to add synthetic argument (of type that user can't use) to constructors with default arguments to avoid clashing with real user's constructor having the same set of parameters and additional int's arguments.
36 lines
570 B
Java
36 lines
570 B
Java
package test;
|
|
|
|
class JavaClass {
|
|
void testMethod(One instance) {
|
|
try {
|
|
new One(1);
|
|
}
|
|
catch (E1 e) {}
|
|
|
|
try {
|
|
new One(1, 0, null);
|
|
}
|
|
catch (E1 e) {}
|
|
|
|
try {
|
|
new One();
|
|
}
|
|
catch (E1 e) {}
|
|
|
|
try {
|
|
One.one$default(instance, 1, 1);
|
|
}
|
|
catch (E1 e) {}
|
|
|
|
try {
|
|
TestPackage.one(1);
|
|
}
|
|
catch (E1 e) {}
|
|
|
|
try {
|
|
TestPackage.one$default(1, 0);
|
|
}
|
|
catch (E1 e) {}
|
|
}
|
|
}
|