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

cyclic inner interface inheritance is allowed by the compiler

    • sparc
    • solaris_2.5.1



      Name: laC46010 Date: 07/09/97



      Subclassing enclosing inner interface, as shown in example "Test.java" below,
      is allowed by all Java compilers from JDK 1.1 thru 1.1.3F. In other words,
      javac succeeds in compilation of the test and produces no errors, while
      there should be an error reported.

      Note, that similar example for inner classes (rather than interfaces) causes
      javac to encounter eternal loop (bug #4059072).

      --------------------Test.java----------------------
      class Test {
      interface A {
      interface B extends A {}
      }
      }
      ---------------------------------------------------------------------------------

      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: