Skip to content

Commit d1888fa

Browse files
author
zhourenjian@gmail.com
committed
Fixing bug of char related functions and improving char related operation compilation.
1 parent 7f980d3 commit d1888fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ private void visitArgumentItem(ASTNode element,
806806
&& (/*"append".equals(methodName) || */"indexOf".equals(methodName) || "lastIndexOf".equals(methodName))
807807
&& ("java.lang.String".equals(Bindings.removeBrackets(clazzName))));
808808

809-
if (exp instanceof CharacterLiteral) {
809+
if (!ignored && exp instanceof CharacterLiteral) {
810810
CharacterLiteral cl = (CharacterLiteral) exp;
811811
buffer.append(0 + cl.charValue());
812812
ignored = true;

0 commit comments

Comments
 (0)