[BUG] [Java] Deprecation and serial warnings in JSON.java
and ApiException.java
when generating using native
#17715
Closed
5 of 6 tasks
Labels
Bug Report Checklist
Description
Using the
native
Java generator with a new-enough jackson fails our build because of deprecation warnings inJSON.java
:The
JSON.java
problem seems to have been fixed injersey2
andjersey3
so it's an easy fix.The serial warnings can be fixed with a one-liner in
apException.mustache
:The serial warning impacts most of the Java generators except
microprofile
, which declares aserialVersionUID
.openapi-generator version
7.2.0 but the issue is also on the newest master.
OpenAPI declaration file content or url
Generation Details
Generated using
mvn compile
.Steps to reproduce
I have this
pom.xml
that reproduces it:Related issues/PRs
#17716
Suggest a fix
Fixed in the linked PR.
The text was updated successfully, but these errors were encountered: