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
I use jpackage to create a minimal java for my desktop application.
My desktop application does not use any type of SQL, only JSON.
I expected not to include java.sql module into my application's jpackage.
// classes from java.sql module, this module may or may not be present at runtime// (is included on Java 8, but not part of JDK core for Java 9 and beyond)privatefinalMap<String, String> _sqlDeserializers;
privatefinalMap<String, Object> _sqlSerializers;
Operating System: Windows 11
JVM version: 21
(I understand this problem will happen with any OS + any JVM version as long as java.sql module is not there.)
Expected Behavior
I use
jpackage
to create a minimal java for my desktop application.My desktop application does not use any type of SQL, only JSON.
I expected not to include
java.sql
module into my application's jpackage.Actual Behaviour
As it turns out,
java.sql
is a required module.I tracked this to these two lines loading java.sql packages.
micronaut-serde-support-2.14.0-sources.jar!/io/micronaut/serde/support/serdes/Serdes.java:119
I expected behavior similar to Jackson-Databind, which successfully loads without
java.sql
module.jackson-databind-2.18.3-sources.jar!/com/fasterxml/jackson/databind/ext/OptionalHandlerFactory.java:86
Steps To Reproduce
https://github.com/NotJustAnna/micronaut-serde-requires-sql provides a way to reproduce the error.
gradle jpackage
build/jpackage/out
Environment Information
Operating System: Windows 11
JVM version: 21
(I understand this problem will happen with any OS + any JVM version as long as
java.sql
module is not there.)Example Application
https://github.com/NotJustAnna/micronaut-serde-requires-sql
Version
4.8.0
The text was updated successfully, but these errors were encountered: