XMLWordPrintable

    • 1.1
    • sparc
    • generic
    • Not verified



      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


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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: