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

JLS 2e 6.6.2.2 check not performed for anonymous class instantiation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.2.0, 1.3.0
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: