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

ClassNotFoundException when applying evosuite on the project Mockito #465

Open
DJjjjhao opened this issue Jan 10, 2024 · 0 comments
Open

Comments

@DJjjjhao
Copy link

Context

Please provide below a detailed introduction to the issue itself, and describe what you were doing when the issue happened. Or, what do you want to achieve?

I want to use evosuite to generate tests for the project Mockito built by Gradle, but it appeared the UnsupportedClassVersionError.

Steps to Reproduce

Please break down here below all the needed steps to reproduce the issue.
[If possible, please upload an example of the project you are generating tests for.]

  1. The system is win11. I use IDEA to build the project Mockito, which is built by Gradle, and the JVM version is Java17
  2. I execute the evosuite-1.1.0 to generate the tests, and the local JVM version is also Java17
  3. I have tried many different versions of Java, including Java8, Java11, Java 17, Java20, they all produce the same error

EvoSuite Arguments

Please provide the whole EvoSuite commmand you executed (if relevant)

java -jar evosuite-1.1.0.jar -class org.mockito.AdditionalMatchers -projectCP build/classes/java/main

Current Result

Please describe here below the current result you got (if relevant)
[if relevant, include a screenshot]
image

Expected result

Please describe here below what should be the expected behaviour (if relevant)

Additional info

Please add any information of interest here below
I have tried many different versions of Java, including Java8, Java11, Java 17, Java20, they all produce the same error. When setting different versions of Java, the error message is always "this version of the Java Runtime only recognizes class file versions up to 52.0". This is not resonable, it should change.

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