We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c359e8 commit 7a7df30Copy full SHA for 7a7df30
sources/net.sf.j2s.core/src/net/sf/j2s/core/astvisitors/ASTScriptVisitor.java
@@ -1189,7 +1189,7 @@ public boolean visit(MethodDeclaration node) {
1189
return false;
1190
}
1191
String name = (isConstructor ? "construct" : getJ2SName(node.getName())) + getJ2SParamQualifier(null, mBinding);
1192
- if (name.equals("construct"))
+ if (isConstructor && name.equals("construct"))
1193
defaultConstructor = mBinding; // in case we are not qualifying names here
1194
buffer.append("\r\nClazz.newMethod$(C$, '").append(name).append("', ").append("function (");
1195
@SuppressWarnings("unchecked")
0 commit comments