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

inner classes not seen in nested blocks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1
    • tools
    • None
    • sparc
    • solaris_2.5.1

      The following code won't compile, although if the new occurs in exactly the same block as the class declaration it is happy:

      class t {
          public static void main(String[] args) {
              class ic { }
              {
                  new ic();
              }
          }
      }

            wmaddoxsunw William Maddox (Inactive)
            karnoldsunw Kenneth Arnold (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: