swagger-api / swagger-parser

Swagger Spec to Java POJOs
http://swagger.io
Apache License 2.0
773 stars 525 forks source link

tests fail on Java 21 (works on Java 17) #2095

Open taylortails opened 1 month ago

taylortails commented 1 month ago

mvn clean verify results in

PermittedUrlsCheckerTest failure

UnsupportedOperation class redefinition failed: attempted to change the class NestHost, NestMembers, Record, or PermittedSubclasses attribute

I guess because Mockit doesnt support Java 21.

Are there any plans here? Migrate to Mockito 4? (Mockito 5 drops Java 8 support).