Skip to content

Commit a61045b

Browse files
authored
Merge pull request #174 from BobHanson/hanson1
java.util.concurrent.CompletableFuture and Unsafe field fix
2 parents 8fa97aa + d750ccb commit a61045b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+3708
-3337
lines changed
-19.5 KB
Binary file not shown.
29 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200625205024
1+
20200713172416
-19.5 KB
Binary file not shown.
29 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200625205024
1+
20200713172416

sources/net.sf.j2s.core/src/net/sf/j2s/core/CorePlugin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class CorePlugin extends Plugin {
3131
// j2sApplet.js and also (Bob only) update.bat, update-clean.bat
3232

3333

34+
// BH 2020.07.04 -- 3.2.9.v1m fix for X.super.y() in anonymous class
3435
// BH 2020.06.22 -- 3.2.9.v1k fix for varargs not proper qualified arrays
3536
// BH 2020.06.17 -- 3.2.9-v1j fix for functional interface this::privateMethod
3637
// BH 2020.05.01 -- 3.2.9-v1i fix for nested lambda methods

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

Lines changed: 97 additions & 74 deletions
Large diffs are not rendered by default.
-19.5 KB
Binary file not shown.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
We are using the 2015 closure compiler because it does not completely mangle
2+
FOR loops and does not have the 10K $jscomp header. For example:
3+
4+
for (; start < hi; start++) {
5+
let pivot=a[start];
6+
let left=lo;
7+
let right=start;
8+
...
9+
10+
in the newer compiler is converted to:
11+
12+
for(var n={};a<b;
13+
n={$jscomp$loop$prop$left$287:n.$jscomp$loop$prop$left$287,
14+
$jscomp$loop$prop$right$288:n.$jscomp$loop$prop$right$288},a++){
15+
var e=c[a];
16+
n.$jscomp$loop$prop$left$287=d;
17+
n.$jscomp$loop$prop$right$288=a;
18+
...
19+
20+
so every time through the loop n is recreated?
21+
22+
I don't get it.
23+
24+

0 commit comments

Comments
 (0)