swagger-codegen 3.0.71 generates illegal code for Java 21 #12586
Unanswered
JuergenSimon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to generate a client for the paperlessngx REST API, which is
openapi: 3.0.3
.The API has some enums, like this:
This winds up with a compilation error in Java:
XXX/src/rasff-sws/target/generated-sources/swagger/src/main/java/io/swagger/client/model/AllOfTasksViewRequestType.java:25:48 java: cannot inherit from final io.swagger.client.model.TasksViewTypeEnum
This makes perfect sense, as AllOfTasksViewRequestType.java looks like this:
I have no idea how this code is supposed to compile. Was this construct legal in Java 11? At any rate, we must use Java 21 and how do I fix this problem?
Beta Was this translation helpful? Give feedback.
All reactions