-
Sub-task
-
Resolution: Won't Fix
-
P3
-
None
-
None
-
None
-
generic
-
generic
jjs> function RandomObject() { this.toString = function() { return
(Math.random() * 100).toString(); } }
jjs> 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!