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

Spurious Cyclic Inheritance Error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P4
    • None
    • 1.3.0
    • tools
    • x86
    • windows_nt

    Description



      Name: rlT66838 Date: 03/30/2000


      java version "1.3.0rc1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-T)
      Java HotSpot(TM) Client VM (build 1.3.orc1-S, mixed mode)

      The following source code compiles under jdk 1.1.8, 1.2.2, and 1.3beta but not
      under jdk1.3rc1:

      //----------

      public class Test
        implements Test.Inner
      {
        public static interface Inner
        {
        }
      }

      //----------

      The following compiler error is reported:

      Test.java:4: cyclic inheritance involving Test
        public static interface Inner
                      ^
      1 error

      //----------

      The source code is legal Java. The error is spurious.

      I submitted this bug report yesterday but made an error in the source code which
      prevented compilation using any version. This is a corrected submission.
      (Review ID: 103094)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              wmaddoxsunw William Maddox (Inactive)
              rlewis Roger Lewis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: