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

Java 18 compatibility #33

Closed
ScoreUnder opened this issue Aug 13, 2022 · 1 comment
Closed

Java 18 compatibility #33

ScoreUnder opened this issue Aug 13, 2022 · 1 comment

Comments

@ScoreUnder
Copy link

I saw there was a pull request to update dependencies for Java 18 compatibility, but even building against 402539a using ./mvnw clean package, the resulting target/lwjglx-debug-1.0.0.jar does not seem to work with Java 18. It's exactly what you'd expect:

java.lang.IllegalArgumentException: Unsupported class file major version 62
	at org.lwjglx.debug.org.objectweb.asm.ClassReader.<init>(ClassReader.java:196)
	at org.lwjglx.debug.org.objectweb.asm.ClassReader.<init>(ClassReader.java:177)
	at org.lwjglx.debug.org.objectweb.asm.ClassReader.<init>(ClassReader.java:163)
	at org.lwjglx.debug.Agent.transform_(Agent.java:140)
	at org.lwjglx.debug.Agent.transform(Agent.java:65)
[...]

Oddly enough, in the source I have, the new ClassReader occurs one line later, on line 141, but is reported as being on 140 for reasons I cannot fathom.

There was also one stage of the maven build where it threw an error (not counting the intentional errors in testing), and I'm not sure if it's significant or not:

[INFO] --- maven-antrun-plugin:3.1.0:run (default) @ lwjglx-debug ---
[INFO] Executing tasks
[ERROR]      [java] java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
     [java] 	at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
     [java] 	at org.apache.tools.ant.taskdefs.Java.run(Java.java:891)
     [java] 	at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:231)
     [java] 	at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
@ScoreUnder
Copy link
Author

It seems to have started working and I am not sure how.

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

1 participant