Dear all, I hope you are doing well!
I was using the hibernate-validator version 5.4.2 and java 8 spring boot 1.5.15, we are using the EqualsVerifier to test Equals and HashCode for all the entities, after change de hibernate-validator version from 5.4.2 to 6.2.0 some models stop working on equals and hashcode validation, I saw that all models that have some annotation from the Jakarta or javax.validation like: @NotNull, @Past, @AssertTrue, @Valid etc... is not working anymore, the error that I can see on the log is:
No such instance method: 'void nl.jqno.equalsverifier.internal.asm.ClassReader.accept(org.objectweb.asm.ClassVisitor, int).I read something about the
asm conflict or upgrade the cglib-nodep but I can't put to work again, could you help me given some information about it?
I'm using the versions bellow of EqualsVerifier and Hibernate-Validator:
//EqualsVerifier
<dependency>
<groupId>
nl.jqno.equalsverifier</groupId>
<artifactId>
equalsverifier</artifactId>
<version>
1.7.1</version>
<scope>
test</scope>
</dependency>
//Hibernate-Validator
<dependency>
<groupId>
org.hibernate</groupId>
<artifactId>
hibernate-validator</artifactId>
<version>
6.2.0.Final</version>
<exclusions>
<exclusion>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.spec.javax.transaction</groupId>
<artifactId>jboss-transaction-api_1.2_spec</artifactId>
</exclusion>
</exclusions>
</dependency>
Thank you for your help