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

cyclic inner interface inheritance is allowed by the compiler

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5.1

      Description



      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 {}
      }
      }
      ---------------------------------------------------------------------------------

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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: