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

Elements.getPackageElement(ModuleElement,CharSequence) returns null for unnamed package

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 13
    • Fix Version/s: 14
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b24

      Description

      The method
        Elements.getPackageElement(ModuleElement,CharSequence)
      returns null for a name that is the empty string, despite the spec saying that it should return the unnamed package for the module.

      Internally, this is because the internal symbol is not marked as existing.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: