JLS 2e 6.6.2.2 check not performed for anonymous class instantiation

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: 1.2.0, 1.3.0
    • Component/s: tools
    • generic
    • generic

      JLS 2e 6.6.2.2 permits access to a protected constructor via an anonymous
      class instance creation expression only when the access occurs within a
      subclass of the class in which the constructor is declared (or if the
      declaration occurs within the same package as the access). This rule is
      not enforced in JDK 1.3 or JDK1.2.x.

      william.maddox@Eng 2000-03-10

            Assignee:
            Neal Gafter (Inactive)
            Reporter:
            William Maddox (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: