Incorrect indentation of LineNumberTable/LocalVariableTable/Exception table/LocalVariableTypeTable/StackMapTable/RuntimeVisibleTypeAnnotations in verbose mode

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 24
    • Affects Version/s: 9
    • Component/s: tools
    • Environment:

      9, dev repo

    • b26

      Get the javap's output for any class (e.g.
      public class A {
          public void a() {
          }
      })
      for "-verbose" option.

      LineNumberTable/LocalVariableTable are indented right relatively to the code section.
      ...........
        public a.A();
          descriptor: ()V
          flags: ACC_PUBLIC
          Code:
            stack=1, locals=1, args_size=1
               0: aload_0
               1: invokespecial #1 // Method java/lang/Object."<init>":()V
               4: return
            LineNumberTable:
              line 9: 0
            LocalVariableTable:
              Start Length Slot Name Signature
                  0 5 0 this La/A;
      ...........

      At the same time for "-c -l" option combination the output looks correct:
      ...............
      public class a.A {
        public a.A();
          Code:
             0: aload_0
             1: invokespecial #1 // Method java/lang/Object."<init>":()V
             4: return
          LineNumberTable:
            line 9: 0
          LocalVariableTable:
            Start Length Slot Name Signature
                0 5 0 this La/A;
      ...............

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

              Created:
              Updated:
              Resolved: