Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8216501

javax.lang.model should provide utility predicates for ModuleElements

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      It should be possible to determine if a module element is for an unnamed module, or for an automatic module. This information is available within the java implementation, but should be exposed to clients via the public API.

      One possible solution that is in line with similar existing methods would be to provide the following methods:

      boolean Elements.isUnnamedModule(ModuleElement)
      boolean Elements.isAutomaticModule(ModuleElement)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jjg Jonathan Gibbons
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: