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

JLS3 chapter 7 Packages has several typos and inaccuracy.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 6
    • 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***")

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: