Skip to content

Commit 037c120

Browse files
committed
// BH 6/27/2018 -- fix for a[Integer] not becoming a[Integer.valueOf]
1 parent d48ef6d commit 037c120

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed
91 Bytes
Binary file not shown.
91 Bytes
Binary file not shown.

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
import org.eclipse.jdt.core.dom.WhileStatement;
123123
import org.eclipse.jdt.core.dom.WildcardType;
124124

125+
// BH 6/27/2018 -- fix for a[Integer] not becoming a[Integer.valueOf]
125126
// BH 6/26/2018 -- method logging via j2s.log.methods.called and j2s.log.methods.declared
126127
// BH 6/24/2018 -- synchronized(a = new Object()) {...} ---> ...; only if an assignment or not a simple function call to Object.getTreeLock()
127128
// BH 6/23/2018 -- synchronized(a = new Object()) {...} ---> if(!(a = new Object()) {throw new NullPointerException()}else{...}
@@ -3395,8 +3396,12 @@ private void addNonCharacter(Expression exp) {
33953396
switch (name) {
33963397
case "char":
33973398
case "Character":
3399+
case "Byte":
3400+
case "Short":
3401+
case "Integer":
3402+
case "Long":
33983403
addOperand(exp, false);
3399-
break;
3404+
break;
34003405
default:
34013406
case "String":
34023407
exp.accept(this);

0 commit comments

Comments
 (0)