-
-
Notifications
You must be signed in to change notification settings - Fork 797
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
Extra module-info.class in 2.15.1 #1027
Comments
We probably need to change the maven shade plugin config to exclude the module-info classes coming from FastDoubleParser. |
Fixed for inclusion in 2.15.2. Wonder if there's any way this could be tested -- probably only |
@cowtowncoder I wrote https://github.com/pjfanning/jackson-jpms-check to test this. I tried a few approaches but this Gradle project is the only way that I got it to work. It uses a Gradle plugin developed by @jjohannes If you adjust the The test passes with v2.15.2-SNAPSHOT. |
@pjfanning Cool. Note that Alternatively it'd be fine if there was a way to trigger tests to run as cron (like |
I have several projects using plain Maven to build an artifact with JPMS module descriptor depending on Jackson modules, like module-info.java module com.example.testme {
/* ... *\
requires com.fasterxml.jackson.databind;
} failing the compile stage with 2.15.1 (passing with 2.15.0 and 2.15.2-SNAPSHOT) If the test are triggered from JUnit just add s skip condition on the Java version, s.t. the specific tests cases are not executed on JDK 8. Should be preferred over dropping JDK 8 completely. |
@cowtowncoder https://github.com/FasterXML/jackson-integration-tests is not a maven multi-module project. If it was refactored to become a multi-module project, a new maven submodule could be added that tests the JPMS modules of the core jackson projects. Or we could just clone https://github.com/pjfanning/jackson-jpms-check into the fasterxml org and set up a github workflow that runs those tests with a few Java 9+ java versions. |
Worth noting, too, that build is done on JDK 8 which is not module-aware; module-info is really an add-on that is "alien" for most of the Jackson components at this point. Once we move to JDK 11 or beyond this will become easier for sure. |
True, true.
I think it's fine for it to exist on its own -- all I care about is to have visibility, maybe get notified on failures automatically (and run on schedule). While in perfect world it'd be nice to have cascading triggers from builds, I think daily runs work quite well to catch relatively rare (?) failures like module info breakages. |
Because of FasterXML/jackson-core#1027.
Fixed: included in 2.15.2 that was just released |
2.15.1 is faulty version. as this reported issues. FasterXML/jackson-core#1027 hilla is using this version as it was aligned from flow.
2.15.1 is faulty version. as this reported issues. FasterXML/jackson-core#1027 hilla is using this version as it was aligned from flow.
Earlier 2.15.1 was broken, but it's fixed now. See FasterXML/jackson-core#1027
problem
There are extra module-info.class in
META-INF/versions
versions/9/module-info.class
: containscom.fasterxml.jackson.core
moduleversions/X/module-info.class
: containsch.randelshofer.fastdoubleparser
moduleThis fails JPMS build with error:
Those other module-info.class files were not present in 2.15.0
workaround
Manually deleting extra
module-info.class
(exceptversions/9
) the build can succeed.The text was updated successfully, but these errors were encountered: