Skip to content

Conversation

@mbien
Copy link
Member

@mbien mbien commented Oct 17, 2025

Saw that list while going through heap dumps and looking through GC roots. Looks important.

Not sure if org.netbeans.lib.nbjavac needs to be on it too or only the original javac packages.

removed

  • com.sun.javadoc
  • com.sun.tools.javadoc
  • com.sun.tools.hc

added

  • com.sun.tools.doclint
  • com.sun.tools.javap

@mbien mbien added the Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) label Oct 17, 2025
@mbien mbien requested a review from lahodaj October 17, 2025 17:10
@mbien mbien added this to the NB29 milestone Oct 25, 2025
@mbien
Copy link
Member Author

mbien commented Oct 25, 2025

@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.

@mbien mbien force-pushed the update-javac-package-list branch from 216db69 to 702d082 Compare December 18, 2025 13:58
Comment on lines 735 to 736
//keep synchronized with libs.javacapi/manifest.mf and libs.javacimpl/manifest.mf
//when adding new packages, double-check the quick path in loadClass below:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm puzzled, I'm not very aware of this part of NetBeans

In
libs.nbjavacapi/manifest.mf
OpenIDE-Module-Hide-Classpath-Packages:
there is a package list that looks like the one here but could be unrelated.

Copy link
Member Author

@mbien mbien Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are right, tracked the file through history and OpenIDE-Module-Hide-Classpath-Packages was modified together with that list.
emilianbold/netbeans-releases@33f67f2

this change is also interesting, although the LambdaMetaFactory.translateClassFile line was commented out again in the CachingArchiveClassLoader
emilianbold/netbeans-releases@2bf2f0d

Copy link
Member Author

@mbien mbien Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.**

is also missing a comma atm! (com.sun.tools.javac.** is there twice)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

removed
 - com.sun.javadoc
 - com.sun.tools.javadoc
 - com.sun.tools.hc

added
 - com.sun.tools.doclint
 - com.sun.tools.javap
@mbien mbien force-pushed the update-javac-package-list branch from 702d082 to cc0828e Compare December 18, 2025 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants