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

Library Requires Java Runtime 21 #68

Closed
mikepenz opened this issue Jan 16, 2025 · 8 comments
Closed

Library Requires Java Runtime 21 #68

mikepenz opened this issue Jan 16, 2025 · 8 comments

Comments

@mikepenz
Copy link

Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedClassVersionError: sh/calvin/reorderable/ReorderableLazyListKt has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)

When using the library in a project compiled with Java 17 it will throw a runtime exception as the ReorderableLazyListKt appears to be compiled with Java 21.

(I haven't looked into details beyond yet, however this article might help: https://www.liutikas.net/2025/01/10/Conservative-Librarian.html)

@Calvin-LL
Copy link
Owner

Can you try version 2.4.3-dev? I want to make sure it works for you before I release it.

@mikepenz
Copy link
Author

Thank you @Calvin-LL which repo did you release it on?

@Calvin-LL
Copy link
Owner

Calvin-LL commented Jan 17, 2025

it's in https://github.com/Calvin-LL/Reorderable/tree/dev/2.4.3 and should be published on maven central as well as sh.calvin.reorderable:2.4.3-dev (might have to wait a few more minutes for it to propagate)

@mikepenz
Copy link
Author

mikepenz commented Jan 17, 2025

Thanks. just wanted to confirm :D as maven central gave me an error. will give it 15-45 mins to sync :)

@mikepenz
Copy link
Author

Thank you once more for looking into this! I can confirm that this fixes it

@Calvin-LL
Copy link
Owner

Amazing. I'll publish that shortly.

@Calvin-LL
Copy link
Owner

@mikepenz
Copy link
Author

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants