Java/Maven novice here, I'm trying to integrate EqualsVerifier
into my code but am getting the following error
java.lang.AssertionError: EqualsVerifier found a problem in class com.me.MyClass.
-> Unsupported class file major version 61
As I understand it this means that I'm trying to load a JAR built for a different JDK than what I'm building with (17). How can I pull (or build) the JDK17 version of this dependency? My pom
contains the following:
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier</artifactId>
<version>3.10.1</version>
<scope>test</scope>
</dependency>
For me, it ended up being Redisson having forced an old version of byte-buddy to be loaded. Overriding with the proper one (which I found in https://mvnrepository.com/artifact/nl.jqno.equalsverifier/equalsverifier/3.12.3 ) fixed this.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.