-
Sub-task
-
Resolution: Fixed
-
P3
-
8u60, 9
-
None
-
b65
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085657 | emb-9 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | team |
JDK-8087069 | 8u65 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b01 |
JDK-8080262 | 8u60 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b16 |
JDK-8138505 | emb-8u65 | Unassigned | P3 | Resolved | Fixed | b01 |
JDK-8081194 | emb-8u60 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | team |
function RandomObject() {
this.toString = function() {
return (Math.random() * 100).toString();
}
}
for (var j=0; j <100; ++j) {
var arr = [];
for (var i = 0; i < 64; ++i)
arr[i] = new RandomObject;
arr.sort();
}
Expected: no IllegalArgumentException is thrown
Actual: java.lang.IllegalArgumentException: Comparison method violates
its general contract!
this.toString = function() {
return (Math.random() * 100).toString();
}
}
for (var j=0; j <100; ++j) {
var arr = [];
for (var i = 0; i < 64; ++i)
arr[i] = new RandomObject;
arr.sort();
}
Expected: no IllegalArgumentException is thrown
Actual: java.lang.IllegalArgumentException: Comparison method violates
its general contract!
- backported by
-
JDK-8080262 Array.prototype.sort throws IAE on inconsistent comparison
-
- Resolved
-
-
JDK-8081194 Array.prototype.sort throws IAE on inconsistent comparison
-
- Resolved
-
-
JDK-8085657 Array.prototype.sort throws IAE on inconsistent comparison
-
- Resolved
-
-
JDK-8087069 Array.prototype.sort throws IAE on inconsistent comparison
-
- Resolved
-
-
JDK-8138505 Array.prototype.sort throws IAE on inconsistent comparison
-
- Resolved
-