-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Make some java platform modules optional #2913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Moditect error: |
Ok fortunately that just looks like maven-compiler config, grabbing your branch |
LGTM. |
Serialization and deserialization of javax.xml classes (module java.xml) is handled by com.fasterxml.jackson.databind.ext.OptionalHandlerFactory, it already handles classes from java.xml module as optional.
Some java environments already don't have java.sql classes Make DateDeserializers weakly depend on java.sql classes Serialization is already weak, as pe [databind#1073]
java.desktop classes (java.beans.ConstructorProperties and java.beans.Transient) are used in com.fasterxml.jackson.databind.ext.Java7SupportImpl, if java.beans classes are not present, then jackson will not load Java7SupportImpl
e30c0c1
to
dce71c0
Compare
Travis ran without issues. LGTM too. |
@XakepSDK forgot to ask earlier, but have I asked for CLA before? I thought I might have, but not sure. https://github.com/FasterXML/jackson/blob/master/contributor-agreement.pdf and the usual method is to print, fill & sign, scan/photo, email to |
…s under ext or something)
What i did:
java.logging
module, looks like it's not required at alljava.desktop
module staticjava.xml
module staticjava.sql
module static, some changes inDateDeserializers.java
were requiredWhat i tested:
Env: Arch Linux, OpenJDK 14 (openjdk version "14.0.2" 2020-07-14)
mvn package -P java14+
- compiles, all tests passedmvn package -P moditect,java14
- moditect plugin fails, happens for me on master tooEnv: Arch Linux, OpenJDK 1.8 (openjdk version "1.8.0_265")
mvn package
- compiles, all tests passedmvn package -P moditect
- moditect plugin fails, happens for me on master toomvn package -P java14+
- invalid flag --releasemvn package -P moditect,java14+
- moditect plugin fails, happens for me on master tooHelp wanted:
Not tested in environment without
java.desktop
,java.xml
andjava.sql
modulesTODO: Test in environment without static modules
TODO: Make sure tests are running only if modules present
Fixes #2910