JLS3 chapter 7 Packages has several typos and inaccuracy.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 7
    • Affects Version/s: 6
    • Component/s: specification
    • None
    • rc
    • generic
    • generic
    • Verified

      JLS 7.5.4 should say:

      - "A static-import-on-demand declaration allows all accessible static members ***of*** the type named by a canonical name to be imported as needed:"

      (i.e. members which are declared OR inherited in the type, as per 6.4.3, 8.2 and 9.2.)

      - "Two or more static-import-on-demand declarations in the same compilation unit may name the same type; the effect is as if there was exactly one such declaration."

      (i.e. not "same type ***or package***")

            Assignee:
            Alex Buckley
            Reporter:
            Yulia Novozhilova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: