You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Still reproducible on current master (2.1.49-SNAPSHOT), and JDK 25 adds a second failure. Results of mvn -B install:
JDK 21 and 25: 15 tests in PermittedUrlsCheckerTest (swagger-parser-safe-url-resolver) fail with class redefinition failed: attempted to change the class NestHost, NestMembers.... @Mocked NetUtils makes JMockit 1.49 cascade-mock the InetAddress return type, and redefining that JDK class is rejected on 21+. It is the only test class affected: the other modules, including the JMockit tests in swagger-parser-v3, pass on both JDKs.
JDK 25 only:maven-javadoc-plugin fails swagger-parser-core with Unexpected redirection for URL http://docs.oracle.com/javase/8/docs/api/element-list. Oracle now redirects that URL, and javadoc 25 treats the redirect as an error.
I'd like to work on this. The plan: migrate PermittedUrlsCheckerTest to Mockito 4.11 mockStatic (still Java 8 compatible), drop the hardcoded javadoc link so the plugin uses its bundled Java 8 package list, and add 21 and 25 to the PR build matrix. The compiler target stays at Java 8.
Activity
vinirib commentedon Oct 29, 2026
Still reproducible on current
master(2.1.49-SNAPSHOT), and JDK 25 adds a second failure. Results ofmvn -B install:PermittedUrlsCheckerTest(swagger-parser-safe-url-resolver) fail withclass redefinition failed: attempted to change the class NestHost, NestMembers....@Mocked NetUtilsmakes JMockit 1.49 cascade-mock theInetAddressreturn type, and redefining that JDK class is rejected on 21+. It is the only test class affected: the other modules, including the JMockit tests inswagger-parser-v3, pass on both JDKs.maven-javadoc-pluginfailsswagger-parser-corewithUnexpected redirection for URL http://docs.oracle.com/javase/8/docs/api/element-list. Oracle now redirects that URL, and javadoc 25 treats the redirect as an error.I'd like to work on this. The plan: migrate
PermittedUrlsCheckerTestto Mockito 4.11mockStatic(still Java 8 compatible), drop the hardcoded javadoc link so the plugin uses its bundled Java 8 package list, and add 21 and 25 to the PR build matrix. The compiler target stays at Java 8.