-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Description
Is this a bug or is java25 unsupported?
Hi,
I currently package swagger-codegen (3.0.77-1) like so, boiling down to:
mvn clean package
which currently is
$ mvn -version
Apache Maven 3.9.12 (848fbb4bf2d427b72bdb2471c22fced7ebd9a7a1)
Maven home: /usr/share/java/maven
Java version: 25.0.2, vendor: Arch Linux, runtime: /usr/lib/jvm/java-25-openjdk
Default locale: de_AT, platform encoding: UTF-8
OS name: "linux", version: "6.18.9-arch1-2", arch: "amd64", family: "unix"
however with swagger-codegen 3.0.78 I get the following error (x 2) during mvn package tests:
[ERROR] Failures:
[ERROR] ScalaCodegenTest.shouldCallFormatIdentifierOnGetModelName:27 Mockito
Mockito cannot mock this class: class io.swagger.codegen.languages.ScalaClientCodegen.
If you're not sure why you're getting this error, please open an issue on GitHub.
[...]
You are seeing this disclaimer because Mockito is configured to create inlined mocks.
You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc.
Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes
[class io.swagger.codegen.languages.AbstractScalaCodegen,
class java.lang.Object,
class io.swagger.codegen.languages.ScalaClientCodegen,
class io.swagger.codegen.DefaultCodegen,
interface io.swagger.codegen.CodegenConfig]
(full log attached)
And to be honest, this is above my java/maven foo. It looks like Mockito cannot parse/dissasable some ScalaClientCodegen class due to too-new java-version?
So, is this a bug or should I package it with a java<=21 requirement? (could not find any info regarding java version)
Swagger Codegen Version
3.0.78
What Have You Tried?
building with java21 works.
Checklist
- [ x] I have searched the existing issues and documentation.
- [ x] I have provided enough context for maintainers to understand the question.
- [ x] This is not a feature request or bug report.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels