Skip to content
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

Closed
SuperPat45 opened this issue Nov 25, 2022 · 5 comments
Closed

Backport the JDK-8280132 issue correction on JDK 11 #639

SuperPat45 opened this issue Nov 25, 2022 · 5 comments
Assignees
Labels
bug Something isn't working jbs:needs-backport-to-11 We need to backport to OpenJDK 11 stale

Comments

@SuperPat45
Copy link

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)
@SuperPat45 SuperPat45 added the bug Something isn't working label Nov 25, 2022
@karianna karianna added jbs:needs-backport-to-17 Fixed in latest JDK, but needs a backport to OpenJDK 17u jbs:backported-to-11 We backported to OpenJDK 11 labels Nov 26, 2022
@github-actions
Copy link

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.
It will be closed soon unless the stale label is removed by a committer, or a new comment is made.

@github-actions github-actions bot added the stale label Feb 25, 2023
@karianna karianna added jbs:needs-backport-to-11 We need to backport to OpenJDK 11 and removed jbs:backported-to-11 We backported to OpenJDK 11 jbs:needs-backport-to-17 Fixed in latest JDK, but needs a backport to OpenJDK 17u stale labels Feb 26, 2023
@karianna
Copy link
Contributor

Will be fixed in 17.0.7

@github-actions
Copy link

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.
It will be closed soon unless the stale label is removed by a committer, or a new comment is made.

@github-actions github-actions bot added the stale label May 28, 2023
@karianna karianna added keep This label can be applied to prevent the Stale bot from closing it after a period of inactivity and removed stale labels May 29, 2023
@karianna karianna changed the title Backport the JDK-8280132 issue correction on JDK 11 and 17 Backport the JDK-8280132 issue correction on JDK 11 May 29, 2023
@karianna karianna removed the keep This label can be applied to prevent the Stale bot from closing it after a period of inactivity label May 29, 2023
@gdams
Copy link
Member

gdams commented Jul 21, 2023

Backport to 11u-dev: openjdk/jdk11u-dev#2053

@gdams gdams self-assigned this Jul 21, 2023
@github-actions
Copy link

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.
It will be closed soon unless the stale label is removed by a committer, or a new comment is made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jbs:needs-backport-to-11 We need to backport to OpenJDK 11 stale
Projects
None yet
Development

No branches or pull requests

3 participants