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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8
    • Fix Version/s: tbd_minor
    • Component/s: tools
    • Labels:
    • Environment:

      8.0 b126

      Description

      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
      }

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: