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

Internal error for zero indent

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b04
    • Verification:
      Not verified

      Backports

        Description

        An attempt to set the indent to zero ("-XDindent:0 -v") leads to the crash while writing "Code" section:

        ....
        public StructureSampleClass();
        descriptor: ()V
        flags: ACC_PUBLIC
        Code:
        stack=2, locals=1, args_size=1
        Error: A serious internal error has occurred: java.lang.ArithmeticException: / b
        y zero
        Please file a bug report, and include the following information:
        java.lang.ArithmeticException: / by zero
                at com.sun.tools.javap.CodeWriter.writeInstr(CodeWriter.java:125)
                at com.sun.tools.javap.CodeWriter.writeInstrs(CodeWriter.java:108)
                at com.sun.tools.javap.CodeWriter.write(CodeWriter.java:75)
                at com.sun.tools.javap.AttributeWriter.visitCode(AttributeWriter.java:21
        9)
                at com.sun.tools.javap.AttributeWriter.visitCode(AttributeWriter.java:74
        )
                at com.sun.tools.classfile.Code_attribute.accept(Code_attribute.java:102
        )
                at com.sun.tools.javap.AttributeWriter.write(AttributeWriter.java:100)
                at com.sun.tools.javap.ClassWriter.writeMethod(ClassWriter.java:519)
                at com.sun.tools.javap.ClassWriter.writeMethods(ClassWriter.java:408)
                at com.sun.tools.javap.ClassWriter.write(ClassWriter.java:219)
                at com.sun.tools.javap.JavapTask.write(JavapTask.java:814)
                at com.sun.tools.javap.JavapTask.writeClass(JavapTask.java:636)
                at com.sun.tools.javap.JavapTask.run(JavapTask.java:590)
                at com.sun.tools.javap.JavapTask.run(JavapTask.java:455)
                at com.sun.tools.javap.Main.main(Main.java:46)

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jjg Jonathan Gibbons
                Reporter:
                ogb Oleg Barbashov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: