-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
Add simple module-info for JDK9+, using Moditect #527
Conversation
@GedMarc similar to annotations one. I think I need to consider JDK 11 for build for other components, to be able to use wildcards for export definitions (and probably for imports too). |
Yeaaahhh, no Wildcards ;) I tried my heart out, but it isn't osgi xD We found out on this thread (moditect/moditect#90 (comment)) that it is actually purely cosmetic from the compiler, the output class knows nothing of it - the output class actually has everything expanded. I put my module info's on the thread for annotations (FasterXML/jackson-annotations#151) They seem to be doing the trick quite nicely, and JLink is building like a star |
Ok thanks -- will leave output at Wildcards are a bummer but I can understand why this is, if code is relying on JDK 9+ functionality for heavy lifting (and not reinventing the wheel) of expanding. |
Alas, Moditect seems quite half-baked tool, giving obscure errors on about any input :-( :-( :-(
or
|
Naw Moditect is everywhere and though its beta it is very stable, classgraph guice, primefaces, etc... Null Pointer is usually a very wrong module file, P.S> rather use an actual module-info.java file, with an attach-sources for JDK11 and up This lets you build the module file in JDK 11, and simply switch a profile to test the forwards compatibility, P.P.S. |
Including actual |
Yeah, As to NPE and other exceptions these are with jackson-core, aalto, so nothing broken about code, only set up of module info and/or plugin configuration. I'm sure there's some reason for failure, but error reporting really is rather bad and I hope maintainers can improve upon it, esp. same useless exceptions were thrown with JDK 11, not just 8. But be that as it may not much I can do about that. |
@@ -0,0 +1,19 @@ | |||
module com.fasterxml.jackson.core { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel your pain. Note ModiTect would allow you to use wildcards (com.fasterxml.jackson.core.*) if you were to use it on JDK 9 or later. It will then generate the actual descriptor exporting all packages matching the wildcard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok that is good to know going forward. While Jackson 2.x will probably not go beyond JDK 8, 3.x will at some point so that's good info.
About the NPE, have you figured what is triggering it? If you file an issue ideally containing a small reproducer project, I can take a look. |
No, I didn't. I haven't seen it with other projects, for what that is worth. If I bump into it again, I will try to get reproducible test case & file an issue. Thanks! |
As per title. For 2.x will use
moduleInfoFile
which allows build using JDK 8, but is quite inconvenient as it can not do wildcard exports; will upgrade in 3.0, and probably for components other thanjackson-core
/jackson-annotations
.