|
10 | 10 | // TODO: CharacterSequence does not implement Java 8 default methods chars() or codePoints() |
11 | 11 | // It is possible that these might be loaded dynamically. |
12 | 12 |
|
| 13 | +// BH 9/29/2018 3.2.4.00 adds JAXB support |
13 | 14 | // BH 9/23/2018 3.2.3.00 adds direct non-Swing applet support (java.applet.Applet and java.awt.*); no need for converting source to a2s.* |
14 | 15 | // BH 9/15/2018 3.2.2.06 adds JScrollBar block and unit increments; fixes JLabel ui getMaximumSize |
15 | 16 | // BH 9/15/2018 3.2.2.05 fixes Math.IEEEremainder |
@@ -744,6 +745,8 @@ Clazz.newMeth = function (clazzThis, funName, funBody, modifiers) { |
744 | 745 |
|
745 | 746 | var isStatic = (modifiers == 1 || modifiers == 2); |
746 | 747 | var isPrivate = (typeof modifiers == "object"); |
| 748 | + if (isPrivate) |
| 749 | + C$.$P$ = modifiers; |
747 | 750 | Clazz.saemCount0++; |
748 | 751 | funBody.exName = funName; // mark it as one of our methods |
749 | 752 | funBody.exClazz = clazzThis; // make it traceable |
@@ -3276,6 +3279,12 @@ java.lang.System = System = { |
3276 | 3279 | case "os.version": |
3277 | 3280 | v = navigator.userAgent; |
3278 | 3281 | break; |
| 3282 | + case "javax.xml.datatype.DatatypeFactory": |
| 3283 | + v = "org.apache.xerces.jaxp.datatype"; |
| 3284 | + break; |
| 3285 | + case "javax.xml.bind.JAXBContextFactory": |
| 3286 | + v = "swingjs.JSJAXBContextFactory"; |
| 3287 | + break; |
3279 | 3288 | } |
3280 | 3289 | if (v) |
3281 | 3290 | return System.$props[key] = v; |
@@ -3544,8 +3553,7 @@ Integer.reverseBytes = m$(Integer,"reverseBytes$I", |
3544 | 3553 | ((i << 24)); |
3545 | 3554 | }, 1); |
3546 | 3555 |
|
3547 | | -m$(Integer,"signum$", |
3548 | | - function(i){ return (i >> 31) | (-i >>> 31); }, 1); |
| 3556 | +m$(Integer,"signum$I", function(i){ return i < 0 ? -1 : i > 0 ? 1 : 0; }, 1); |
3549 | 3557 |
|
3550 | 3558 | m$(Integer,"min$I$I", |
3551 | 3559 | function(a,b) { return Math.min(a,b); }, 1); |
@@ -3735,8 +3743,7 @@ Long.min$J$J = Integer.min$I$I; |
3735 | 3743 | Long.max$J$J = Integer.max$I$I; |
3736 | 3744 | Long.sum$J$J = Integer.sum$I$I; |
3737 | 3745 |
|
3738 | | - |
3739 | | - |
| 3746 | +m$(Long,"signum$J", function(i){ return i < 0 ? -1 : i > 0 ? 1 : 0; }, 1); |
3740 | 3747 |
|
3741 | 3748 | Clazz._setDeclared("java.lang.Short", java.lang.Short = Short = function(){ |
3742 | 3749 | if (typeof arguments[0] != "object")this.c$(arguments[0]); |
|
0 commit comments