Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file modified sources/net.sf.j2s.core/dist/swingjs/SwingJS-site.zip
Binary file not shown.
Binary file modified sources/net.sf.j2s.core/dist/swingjs/net.sf.j2s.core.jar
Binary file not shown.
6 changes: 5 additions & 1 deletion sources/net.sf.j2s.core/dist/swingjs/timestamp
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
20180819230621
<<<<<<< Upstream, based on branch 'yadav1' of https://github.com/BobHanson/java2script.git
20180827111114
=======
20180827113308
>>>>>>> 7e507a2 refactoring mouse events and tooltip
Binary file not shown.
Binary file modified sources/net.sf.j2s.core/dist/swingjs/ver/3.2.2/net.sf.j2s.core.jar
Binary file not shown.
6 changes: 5 additions & 1 deletion sources/net.sf.j2s.core/dist/swingjs/ver/3.2.2/timestamp
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
20180819230621
<<<<<<< Upstream, based on branch 'yadav1' of https://github.com/BobHanson/java2script.git
20180827111114
=======
20180827113308
>>>>>>> 7e507a2 refactoring mouse events and tooltip
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@
import org.eclipse.jdt.core.dom.WhileStatement;
import org.eclipse.jdt.core.dom.WildcardType;

// BH 8/20/2018 -- fix for return (short)++;

// BH 8/19/2018 -- refactored to simplify $finals$
// BH 8/12/2018 -- refactored to simplify naming issues
// BH 8/6/2018 -- additional Java 8 fixes; enum $valueOf$S to valueOf$S
Expand Down Expand Up @@ -2795,8 +2797,6 @@ private boolean fixAssignArray(ArrayAccess leftArray, int ptArray, int ptArray2,
buffer.setLength(ptArray);
String name = left.substring(0, ptIndex1);
if (name.indexOf("(") >= 0) {
// test/Test_Static: getByteArray()[p++] += (byte) ++p;
// ($j$=C$.getByteArray())[$k$=p++]=($j$[$k$]+((++p|0))|0);
buffer.append("($j$=" + name + ")");
name = "$j$";
trailingBuffer.addType("j");
Expand Down Expand Up @@ -3513,7 +3513,7 @@ private void addPrePostFix(Expression left, ASTNode parent, IVariableBinding var
boolean isChar = (type == 'c');
if (isChar)
type = 'p';
boolean isStatement = (parent instanceof Statement);
boolean isStatement = (parent instanceof Statement && !(parent instanceof ReturnStatement));
boolean addAnonymousWrapper = (!isChar || !isPrefix && !isStatement);
String key = "$" + type + (isChar ? "$" : "$[0]");
if (addAnonymousWrapper) {
Expand Down Expand Up @@ -3555,8 +3555,9 @@ private void addPrePostFix(Expression left, ASTNode parent, IVariableBinding var
// ($b$[0]=++b,b=$b$[0]);
buffer.append(key);
} else {
// i = ($b$[0]=b,b=(++$b$[0],$b$[0]),--$b$[0],$b$[0]);
// ($b$[0]=b,b=(++$b$[0],$b$[0]));
// postfix
// statement: ($b$[0]=b,b=(++$b$[0] ,$b$[0]))
// not statement: i = ($b$[0]=b,b=(++$b$[0] ,$b$[0]),--$b$[0],$b$[0]);
buffer.append("(");
buffer.append(op);
buffer.append(key);
Expand Down
Binary file modified sources/net.sf.j2s.java.core/dist/SwingJS-site.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ public VKCollection() {
* for (var k in C$)
* if (k.indexOf("VK_") == 0) {
* try {
* this.put$S$I(k, Integer.valueOf$I(C$[k]));
* this.put$S$Integer(k, Integer.valueOf$I(C$[k]));
* } catch (e) {}
* }
*/
Expand Down
Loading