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

interface declaration allowed in inner class

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2beta
    • CPU:
      generic, x86, sparc
    • OS:
      solaris_2.5.1, windows_95
    • Verification:
      Not verified

      Description

      The IC spec disallows toplevel classes and interfaces in inner classes, but
      the current compiler accepts the following construction without error.
       
      class Test {
          Test() {
              class foo {
                  interface A {
                  }
              }
          }
      }

      todd.turnidge@Eng 1997-07-09

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tturnidgsunw Todd Turnidge (Inactive)
              Reporter:
              tturnidgsunw Todd Turnidge (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: