Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
The only common api I've seen for working with module-info is
org.netbeans.api.java.source.SourceUtils{.parseModuleName,.getModuleName*}
There are several other things that need to be done with module-info. For example, adding a package for fxml access, or for refactoring when moving an exported java class to a different package.
There are module-info utilities scattered throughout the netbeans codebase. For example
./maven/src/org/netbeans/modules/maven/api/ModuleInfoUtils.java ./maven/src/org/netbeans/modules/maven/ModuleInfoSupport.java
and there's a pending fix for NETBEANS-4718 which adds a local "hasModuleInfo".
And notice sitting in .../netbeans/java there are 64 files given by
srcgrep -l module-info | grep -E -v '/test/|/build/'