-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport the JDK-8280132 issue correction on JDK 11 #639
Comments
We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable. |
Will be fixed in 17.0.7 |
We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable. |
Backport to 11u-dev: openjdk/jdk11u-dev#2053 |
We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable. |
Please provide a brief summary of the bug
My production server crash due to this error: java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.base/java.util.TimSort.mergeHi(TimSort.java:903)
at java.base/java.util.TimSort.mergeAt(TimSort.java:520)
at java.base/java.util.TimSort.mergeCollapse(TimSort.java:448)
at java.base/java.util.TimSort.sort(TimSort.java:245)
at java.base/java.util.Arrays.sort(Arrays.java:1515)
at java.base/java.util.ArrayList.sort(ArrayList.java:1750)
at java.desktop/com.sun.beans.introspect.MethodInfo.get(MethodInfo.java:93)
at java.desktop/com.sun.beans.introspect.ClassInfo.getMethods(ClassInfo.java:80)
This error is already reported in the JDK tracker; https://bugs.openjdk.org/browse/JDK-8280132
And it is fixed in JDK 19 in this commit: openjdk/jdk@2f46af0
Can you backport it in temurin 11 and 17 ?
Please provide steps to reproduce where possible
No response
Expected Results
no exception
Actual Results
java.lang.IllegalArgumentException: Comparison method violates its general contract! is thrown
What Java Version are you using?
11.0.16
What is your operating system and platform?
No response
How did you install Java?
No response
Did it work before?
No response
Did you test with other Java versions?
No response
Relevant log output
java.lang.IllegalArgumentException: Comparison method violates its general contract! at java.base/java.util.TimSort.mergeHi(TimSort.java:903) at java.base/java.util.TimSort.mergeAt(TimSort.java:520) at java.base/java.util.TimSort.mergeCollapse(TimSort.java:448) at java.base/java.util.TimSort.sort(TimSort.java:245) at java.base/java.util.Arrays.sort(Arrays.java:1515) at java.base/java.util.ArrayList.sort(ArrayList.java:1750) at java.desktop/com.sun.beans.introspect.MethodInfo.get(MethodInfo.java:93) at java.desktop/com.sun.beans.introspect.ClassInfo.getMethods(ClassInfo.java:80)
The text was updated successfully, but these errors were encountered: