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

LineNumberTable/LocalVariableTable tables duplication for the "-v -l" combination of options

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: tools
    • Environment:

      8.0 b126

    • Subcomponent:
    • Resolved In Build:
      b03
    • Verification:
      Verified

      Backports

        Description

        Compile any class e.g.
        public class SimpleClass {
            public void m() {
            }
        }
        and get javap's output for the "-v -l" combination of options.
        The LineNumberTable/LocalVariableTable tables are duplicated: the first occurrence immediately after the class/method declaration and the second is at the end of "Code" section:

        ....
        {
          public SimpleClass();
            descriptor: ()V
            flags: ACC_PUBLIC
            LineNumberTable:
              line 9: 0
            LocalVariableTable:
              Start Length Slot Name Signature
                  0 5 0 this LSimpleClass;
            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 LSimpleClass;

          public void m();
            descriptor: ()V
            flags: ACC_PUBLIC
            LineNumberTable:
              line 11: 0
            LocalVariableTable:
              Start Length Slot Name Signature
                  0 1 0 this LSimpleClass;
            Code:
              stack=0, locals=1, args_size=1
                 0: return
              LineNumberTable:
                line 11: 0
              LocalVariableTable:
                Start Length Slot Name Signature
                    0 1 0 this LSimpleClass;
        }

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: