Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4765

module-info utilities for common usage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • java - Platform

    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/'
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            errael Ernie Rael
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: