Skip to content

Commit 116ad87

Browse files
committed
3.2.7-v3 transpiler and runtime
1 parent bf1f84d commit 116ad87

File tree

8 files changed

+11
-6
lines changed

8 files changed

+11
-6
lines changed
16.2 KB
Binary file not shown.
-1.92 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200109070504
1+
20200112194529
16.2 KB
Binary file not shown.
-1.92 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200109070504
1+
20200112194529
16.2 KB
Binary file not shown.

sources/net.sf.j2s.java.core/srcjs/swingjs2.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14074,7 +14074,7 @@ Clazz.assert = function(clazz, obj, tf, msg) {
1407414074
try {
1407514075
ok = tf.apply(obj)
1407614076
if (!ok)
14077-
msg = msg.apply(obj);
14077+
msg && (msg = msg.apply(obj));
1407814078
} catch (e) {
1407914079
ok = false;
1408014080
}
@@ -14297,7 +14297,6 @@ Clazz.load = function(cName, from$clinit$) {
1429714297

1429814298
//create and $init0$
1429914299
var initClass0 = function(c) {
14300-
c.$synth$ && c.$synth$(); // add synthetic bridges for generics
1430114300
var fields = c.$fields$;
1430214301
var objects = fields && fields[0];
1430314302
createDefaults(c, objects, false);
@@ -14392,6 +14391,9 @@ var getFields = function(c, data, andDefaults) {
1439214391
case 'C':
1439314392
defval = '\0';
1439414393
break;
14394+
case 'Z':
14395+
defval = false;
14396+
break;
1439514397
default:
1439614398
defval = 0;
1439714399
break;
@@ -15341,7 +15343,6 @@ var excludeSuper = function(o) {
1534115343
|| o == "$Class$"
1534215344
|| o == "$getMembers$"
1534315345
|| o == "$getAnn$"
15344-
|| o == "$synth$"
1534515346
|| o == "prototype"
1534615347
|| o == "__PARAMCODE"
1534715348
|| o == "__CLASS_NAME__"
@@ -17102,8 +17103,12 @@ ps.println = ps.println$ = ps.println$O = ps.println$Z = ps.println$I = ps.print
1710217103

1710317104
ps.println$F = ps.println$D = function(f) {var s = "" + f; ps.println(s.indexOf(".") < 0 && s.indexOf("Inf") < 0 ? s + ".0" : s)};
1710417105

17106+
ps.write$BA = function (buf) {
17107+
ps.write$BA$I$I(buf, 0, buf.length);
17108+
};
17109+
1710517110
ps.write$BA$I$I = function (buf, offset, len) {
17106-
ps.print(String.instantialize(buf).substring(offset, offset+len));
17111+
ps.print(String.instantialize(buf, offset, len));
1710717112
};
1710817113

1710917114
}

0 commit comments

Comments
 (0)