-
Notifications
You must be signed in to change notification settings - Fork 886
[NETBEANS-4044] Fixing patching of modular libraries #4391
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
I tested this change and it works as described in #4044 (comment). However the testfailure from travis of 12666.13 Test Java modules with nb-javac on Java 8 is locally reproducible if you run the unittests locally with JDK-8. |
Both github-actions and travis are happy now. I think this would be worth to be targeted for NB15. @jlahoda What do you think? As branching of has happend, this would need to be retargeted for delivery. |
@matthiasblaesing @neilcsmith-net i just added the NB15 label, maybe we can get this into RC2 or so. Unless @jlahoda doesn't want to. |
@mbien we can get it in RC1 if we're quick about it! Going to change the base branch. If it merges cleanly I will do. |
Am going to merge this into delivery. It doesn't seem to be a full fix for #4044 though. Using @matthiasblaesing example project, docs in completion and navigate to source now work, but the reported Show Javadoc failure still applies. This can be fixed by adding a |
First run of RC1 and I see a bunch of NPEs with the following stack trace -
|
Consider a binary library with an attached source. When opening a source file for the library, if the library is non-modular, the binary will be on the classpath, and the source will be able to refer to it. When the library is modular, javac will not look at the classpath anymore, but will try to lookup module-info and other dependencies on source and output path. So, we need to make sure the output path contains the binary library, so that the lookups work. This is what this patch is trying to achieve.
^Add meaningful description above
By opening a pull request you confirm that, unless explicitly stated otherwise, the changes -
Please make sure (eg.
git log
) that all commits have a valid name and email address for you in the Author field.If you're a first time contributor, see the Contributing guidelines for more information.