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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 14
    • 13
    • tools
    • None
    • b24

      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.

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

              Created:
              Updated:
              Resolved: