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

Unnecessary new line after the StackMapTable

    XMLWordPrintable

    Details

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

      8.0 b126

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

      Backports

        Description

        Get the javap's output that contains a StackMapTable
        (e.g. "-verbose"
        public class A {
            public void a() {
                for (int i = 0; i < 10; i++) {
                    System.out.println(i);
                }
            }
            public void b() {
            }
            public void c() {
            }
        }
        )

        The StackMapTable section is followed by redundant new line symbol:

        .....................
                line 9: 15
                line 12: 21
              LocalVariableTable:
                Start Length Slot Name Signature
                    2 19 1 i I
                    0 22 0 this LA;
              StackMapTable: number_of_entries = 2
                   frame_type = 252 /* append */
                  offset_delta = 2
                  locals = [ int ]
                     frame_type = 250 /* chop */
                    offset_delta = 18


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

            public void c();
              descriptor: ()V
              flags: ACC_PUBLIC
        .....................

          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: