XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1
    • CPU:
      sparc
    • OS:
      generic
    • Verification:
      Not verified

      Description



      Name: ###@###.### Date: 09/04/96


      The following test case causes compiler stack overflow and crash:

      -----------------------clss00807.java---------------------------
      interface clss00807_a {
      int f();
      }

      class clss00807_a implements clss00807_a{
      }
      -------------------------------------------------------------

      > javac clss00807.java
      clss00807.java:5: Class clss00807_a already defined in clss00807.java.
      class clss00807_a implements clss00807_a{
            ^
      java.lang.StackOverflowError
      at sun.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.java:116)
      at sun.tools.javac.SourceClass.addAbstractMethodsFromInterfaces(SourceClass.java:309)
      at sun.tools.javac.SourceClass.addAbstractMethodsFromInterfaces(SourceClass.java:310)
      .... about 6080 the same lines
      at sun.tools.javac.SourceClass.addAbstractMethodsFromInterfaces(SourceClass.java:310)
      at sun.tools.javac.SourceClass.basicCheck(SourceClass.java:499)
      at sun.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.java:116)
      at sun.tools.javac.Main.compile(Main.java:192)
      at sun.tools.javac.Main.main(Main.java:289)
      error: An error has occurred in the compiler; please file a bug report (###@###.###).
      2 errors


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

        Attachments

          Activity

            People

            Assignee:
            tlindholsunw Timothy Lindholm (Inactive)
            Reporter:
            leosunw Leo Leo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: