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

Cyclic inheritance of inner classes makes compiler enter infinite loop

    Details

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

      Description

      JDK12beta2 build Z fails to pass JCK12beta2 test icls03903.
      Compiler enters infinite loop trying to compile the following
      example (which is actually reduced form of the JCK test):

      ------
      class a {
      class b extends c {}
      class c extends b {}
      }
      -------
      > jc a.java
      a.java:3: Cyclic class inheritance.
              class c extends b {}
                              ^

      That's where it hangs. Note that this is a new failure, JDK12beta2 build U
      correctly reported error and did not enter infinite loop.

        Attachments

          Activity

            People

            • Assignee:
              wmaddoxsunw William Maddox (Inactive)
              Reporter:
              oulyankisunw Oleg Ulyankin (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: