Skip to content

Commit 9fe3276

Browse files
hansonrhansonr
authored andcommitted
adds draw3DRect, Math.IEEEremainder, and
System.getProperty("java.vendor") == "SwingJS/OpenJDK"
1 parent 31e335c commit 9fe3276

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed
145 Bytes
Binary file not shown.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// TODO: CharacterSequence does not implement Java 8 default methods chars() or codePoints()
1111
// It is possible that these might be loaded dynamically.
1212

13-
// BH 7/22/2018 adds System.getProperty("java.vendor") == "OpenJDK"
13+
// BH 7/22/2018 adds System.getProperty("java.vendor") == "SwingJS/OpenJDK"
1414
// BH 7/22/2018 adds Math.IEEEremainder
1515
// BH 7/20/2018 removes def of Closeable, DataInput, DataOutput, Iterable, Comparator
1616
// BH 7/19/2018 removes Constructor, Method, and Field code here -- now in their .js files
@@ -2663,7 +2663,7 @@ java.lang.System = System = {
26632663
v = "50";
26642664
break;
26652665
case "java.vendor":
2666-
v = "OpenJDK";
2666+
v = "SwingJS/OpenJDK";
26672667
case "java.version":
26682668
v = "1.6-1.8";
26692669
break;

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13440,6 +13440,7 @@ if (!J2S._version)
1344013440
// TODO: CharacterSequence does not implement Java 8 default methods chars() or codePoints()
1344113441
// It is possible that these might be loaded dynamically.
1344213442

13443+
// BH 7/22/2018 adds System.getProperty("java.vendor") == "SwingJS/OpenJDK"
1344313444
// BH 7/22/2018 adds Math.IEEEremainder
1344413445
// BH 7/20/2018 removes def of Closeable, DataInput, DataOutput, Iterable, Comparator
1344513446
// BH 7/19/2018 removes Constructor, Method, and Field code here -- now in their .js files
@@ -16091,8 +16092,10 @@ java.lang.System = System = {
1609116092
case "java.class.version":
1609216093
v = "50";
1609316094
break;
16095+
case "java.vendor":
16096+
v = "SwingJS/OpenJDK";
1609416097
case "java.version":
16095-
v = "1.6";
16098+
v = "1.6-1.8";
1609616099
break;
1609716100
case "file.separator":
1609816101
case "path.separator":

0 commit comments

Comments
 (0)