Skip to content

Commit abc1fd9

Browse files
hansonrhansonr
authored andcommitted
missing Integer.compareTo$Integer
1 parent e7b7fef commit abc1fd9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
115 Bytes
Binary file not shown.

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14022,6 +14022,7 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
1402214022

1402314023
// Google closure compiler cannot handle Clazz.new or Clazz.super
1402414024

14025+
// BH 2021.06.11 Number.compareTo(....) missing
1402514026
// BH 2021.02.12 implements better(?) interface defaults resolution -- in order of presentation
1402614027
// BH 2020.12.31 3.3.1-v1 full 64-bit long support; BigDecimal, BigInteger fully 64-bit
1402714028

@@ -17792,7 +17793,10 @@ Number.prototype._numberToString=Number.prototype.toString;
1779217793
Number.__CLASS_NAME__="Number";
1779317794
addInterface(Number,java.io.Serializable);
1779417795
//extendPrototype(Number, true, false);
17795-
Number.prototype.compareTo$ = Number.prototype.compareTo$Number = Number.prototype.compareTo$O = function(x) { var a = this.valueOf(), b = x.valueOf(); return (a < b ? -1 : a == b ? 0 : 1) };
17796+
Number.prototype.compareTo$ = Number.prototype.compareTo$Number =
17797+
Number.prototype.compareTo$O = Number.prototype.compareTo$Byte = Number.prototype.compareTo$Integer =
17798+
Number.prototype.compareTo$Short = Number.prototype.compareTo$Float = Number.prototype.compareTo$Double =
17799+
function(x) { var a = this.valueOf(), b = x.valueOf(); return (a < b ? -1 : a == b ? 0 : 1) };
1779617800

1779717801
var $b$ = new Int8Array(1);
1779817802
var $s$ = new Int16Array(1);

0 commit comments

Comments
 (0)