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

javac crash with java.lang.StringIndexOutOfBoundsException: String index out of range: 71

XMLWordPrintable

    • generic
    • generic

      The compiler as of JDK 7 b32 failed with the output below.
      All goes fine with b31, it's a regression.

      An exception has occurred in the compiler (1.7.0-ea).
      Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates.
      Include your program and the following diagnostic in your report. Thank you.
      java.lang.StringIndexOutOfBoundsException: String index out of range: 71
      at java.lang.String.charAt(String.java:694)
      at com.sun.tools.javac.util.Log.printErrLine(Log.java:251)
      at com.sun.tools.javac.util.Log.writeDiagnostic(Log.java:343)
      at com.sun.tools.javac.util.Log.report(Log.java:306)
      at com.sun.tools.javac.util.AbstractLog.warning(AbstractLog.java:116)
      at com.sun.tools.javac.util.MandatoryWarningHandler.logMandatoryWarning(MandatoryWarningHandler.java:246)
      at com.sun.tools.javac.util.MandatoryWarningHandler.report(MandatoryWarningHandler.java:129)
      at com.sun.tools.javac.comp.Check.warnDeprecated(Check.java:153)
      at com.sun.tools.javac.comp.Attr.checkId(Attr.java:2167)
      at com.sun.tools.javac.comp.Attr.visitIdent(Attr.java:1823)
      at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:1679)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:372)
      at com.sun.tools.javac.comp.Attr.attribType(Attr.java:402)
      at com.sun.tools.javac.comp.Attr.visitNewClass(Attr.java:1397)
      at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1346)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:372)
      at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:389)
      at com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:732)
      at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:709)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:372)
      at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:409)
      at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:425)
      at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:764)
      at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:765)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:372)
      at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:409)
      at com.sun.tools.javac.comp.Attr.visitIf(Attr.java:1058)
      at com.sun.tools.javac.tree.JCTree$JCIf.accept(JCTree.java:1115)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:372)
      at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:409)
      at com.sun.tools.javac.comp.Attr.visitIf(Attr.java:1060)
      at com.sun.tools.javac.tree.JCTree$JCIf.accept(JCTree.java:1115)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:372)
      at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:409)
      at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:425)
      at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:764)
      at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:765)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:372)
      at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:409)
      at com.sun.tools.javac.comp.Attr.visitTry(Attr.java:930)
      at com.sun.tools.javac.tree.JCTree$JCTry.accept(JCTree.java:1023)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:372)
      at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:409)
      at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:425)
      at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:764)
      at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:765)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:372)
      at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:409)
      at com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:683)
      at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:653)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:372)
      at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:409)
      at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:2745)
      at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2671)
      at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2607)
      at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1057)
      at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:786)
      at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:751)
      at com.sun.tools.javac.main.Main.compile(Main.java:386)
      at com.sun.tools.javac.main.Main.compile(Main.java:312)
      at com.sun.tools.javac.main.Main.compile(Main.java:303)
      at com.sun.tools.javac.Main.compile(Main.java:82)
      at com.sun.tools.javac.Main.main(Main.java:67)

            Unassigned Unassigned
            yjoan Yves Joan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: