Skip to content

Commit b61b90d

Browse files
committed
Corrects for ExceptionOf not using quotes
1 parent 1008d82 commit b61b90d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sources/net.sf.j2s.core/src/net/sf/j2s/core/astvisitors/ASTScriptVisitor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,8 @@ public boolean visit(TryStatement node) {
838838
}
839839
buffer.append(haveType ? " || " : "if (");
840840
buffer.append("Clazz.exceptionOf(" + catchEName + ", ");
841-
type.accept(this);
841+
buffer.append("\"" + removeBrackets(type.resolveBinding().getQualifiedName()) + "\"");
842+
//type.accept(this);
842843
buffer.append(")");
843844
haveType = true;
844845
}

0 commit comments

Comments
 (0)