Update javac package list in APTUtils#8931
Merged
mbien merged 1 commit intoapache:masterfrom Jan 21, 2026
Merged
Conversation
Member
Author
|
@lahodaj could you check if this update is ok? I believe that currently some classes may be loaded using the wrong CL since the list misses some packages. |
216db69 to
702d082
Compare
ebarboni
reviewed
Dec 18, 2025
java/java.source.base/src/org/netbeans/modules/java/source/indexing/APTUtils.java
Show resolved
Hide resolved
702d082 to
cc0828e
Compare
removed - com.sun.javadoc - com.sun.tools.javadoc - com.sun.tools.hc added - com.sun.tools.doclint - com.sun.tools.javap
Member
Author
|
gong to rebase this for a fresh dev build |
cc0828e to
0fa3d35
Compare
mbien
commented
Jan 20, 2026
| OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/nbjavac/api/Bundle.properties | ||
| OpenIDE-Module-Specification-Version: 21.9 | ||
| OpenIDE-Module-Hide-Classpath-Packages: com.sun.javadoc.**, com.sun.source.**, javax.annotation.processing.**, javax.lang.model.**, javax.tools.**, com.sun.tools.javac.** com.sun.tools.javac.**, com.sun.tools.javadoc.**, com.sun.tools.javap.**, com.sun.tools.classfile.**, com.sun.tools.doclint.** | ||
| OpenIDE-Module-Hide-Classpath-Packages: com.sun.source.**, javax.annotation.processing.**, javax.lang.model.**, javax.tools.**, com.sun.tools.javac.**, com.sun.tools.javap.**, com.sun.tools.classfile.**, com.sun.tools.doclint.** |
Member
Author
There was a problem hiding this comment.
worth noting that a coma was missing in this section: com.sun.tools.javac.** com.sun.tools.javac.**,
Member
Author
|
planning to merge this for NB 29 compared the paths within the javacapi.jar to the manifest/List values and it looks correct to me after the change. |
Member
Author
|
indexer smoke test worked fine. same metaspace totals as without this PR (same graph as #8702). merging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Saw that list while going through heap dumps and looking through GC roots. Looks important.
Not sure if
org.netbeans.lib.nbjavacneeds to be on it too or only the original javac packages.removed
com.sun.javadoccom.sun.tools.javadoccom.sun.tools.hcadded
com.sun.tools.doclintcom.sun.tools.javap