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 22 not supported #366

Open
Keymaster65 opened this issue Aug 18, 2024 · 5 comments
Open

Java 22 not supported #366

Keymaster65 opened this issue Aug 18, 2024 · 5 comments
Labels

Comments

@Keymaster65
Copy link

On "gradle pitestReportAggregate" I got

Execution failed for task ':pitestReportAggregate'.

A failure occurred while executing info.solidsoft.gradle.pitest.AggregateReportGenerator
Unsupported class file major version 66

It seems, that Java 22 is not supported.

@szpak
Copy link
Owner

szpak commented Sep 15, 2024

What Gradle version do you use? 66 means JDK 22 and AggregateReportGenerator is built for JDK 1.8+.

Gradle 8.8+ seems to support JDK 22. Does it occur also with that version(s)?

@Keymaster65
Copy link
Author

It was gradle 8.9 and 8.10.

@AndrzejVIMN
Copy link

Hi, I'm seeing a similar issue executing the pitest gradle task with JDK 22 and gradle 8.10.2:

Exception in thread "main" java.lang.IllegalArgumentException: Unsupported class file major version 66
        ...
	at org.pitest.bytecode.analysis.ClassTree.fromBytes(ClassTree.java:38)
	at org.pitest.classpath.DefaultCodeSource.lambda$codeTrees$1(DefaultCodeSource.java:35)
	...
	at org.pitest.mutationtest.verify.DefaultBuildVerifier.verify(DefaultBuildVerifier.java:41)
	at org.pitest.mutationtest.verify.CompoundBuildVerifierFactory.lambda$null$1(CompoundBuildVerifierFactory.java:20)
	...
	at org.pitest.mutationtest.verify.CompoundBuildVerifierFactory.lambda$create$2(CompoundBuildVerifierFactory.java:21)
	at org.pitest.mutationtest.tooling.MutationCoverage.verifyBuildSuitableForMutationTesting(MutationCoverage.java:283)
	at org.pitest.mutationtest.tooling.MutationCoverage.runReport(MutationCoverage.java:116)
	at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:136)
	at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:63)
	at org.pitest.mutationtest.commandline.MutationCoverageReport.runReport(MutationCoverageReport.java:98)
	at org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:45)

Are there any plans to add JDK 22 support?

@hcoles
Copy link

hcoles commented Nov 13, 2024

@AndrzejVIMN What version of pitest are you using? 1.17.1 should work with anything upto Java 24.

@AndrzejVIMN
Copy link

@hcoles I was on the default version set by the plugin (which was 1.15.0 I believe) . Setting it to 1.17.1 helped, thanks :)

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

No branches or pull requests

4 participants