Skip to content

Commit 31882c3

Browse files
author
jossonsmith
committed
Merging /trunk to [172]
Patching for [ 1520912 ] Fix for 1520494 - bitwise operators
1 parent 9555b23 commit 31882c3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/net/sf/j2s/core/astvisitors/ASTKeywordParser.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@ public boolean visit(Assignment node) {
563563
right.accept(this);
564564
buffer.append(')');
565565
}
566+
buffer.append(".valueOf ()");
566567
return false;
567568
}
568569
} else if ("char".equals(typeBinding.getName())) {
@@ -1226,7 +1227,7 @@ public boolean visit(InfixExpression node) {
12261227
}
12271228
}
12281229
if (simple) {
1229-
buffer.append(')');
1230+
buffer.append(").valueOf ()");
12301231
}
12311232
return false;
12321233
}
@@ -1328,7 +1329,13 @@ public boolean visit(PackageDeclaration node) {
13281329
}
13291330

13301331
protected String[] skipDeclarePackages() {
1331-
return new String[] {"java.lang"};
1332+
return new String[] {
1333+
"java.lang",
1334+
"java.lang.ref",
1335+
"java.lang.ref.reflect",
1336+
"java.lang.reflect",
1337+
"java.io",
1338+
"java.util"};
13321339
}
13331340

13341341
public void endVisit(ParenthesizedExpression node) {

0 commit comments

Comments
 (0)