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

Unnecessary new line after the StackMapTable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 9
    • 8
    • tools
    • 8.0 b126

    • b04
    • Verified

        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
        .....................

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

                Created:
                Updated:
                Resolved: