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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: 8
    • Component/s: tools
    • None
    • Environment:

      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
      }

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

              Created:
              Updated:
              Resolved: