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

Incorrect alignment in the "Code" section for "-c -XDdetails" options

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 8
    • tools
    • None
    • 8.0 b126

    • b22

      Get the javap's output that contains "StackMap locals" section (e.g.
      public class A {
          public void a() {
              for (int i = 0; i < 10; i++) {
              }
          }
      }
      )

      The "StackMap locals:" and the following sections are aligned incorrectly:

      .........
        public void a();
          Code:
          StackMap locals: this
          StackMap stack:
                                                      9 for (int i = 0; i < 10; i++) {
                                                  ( 10) }
            start local 0 // A this
             0: iconst_0
             1: istore_1
            start local 1 // int i
          StackMap locals: this int
          StackMap stack:
             2: iload_1
             3: bipush 10
             5: if_icmpge 14
             8: iinc 1, 1
            11: goto 2
                                                     11 }
            end local 1 // int i
          StackMap locals: this
          StackMap stack:
            14: return
            end local 0 // A this
      }

            jlamperth Jonathan Lampérth
            ogb Oleg Barbashov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: