JDK-8033930 : Unnecessary new line after the StackMapTable
  • Type: Bug
  • Component: tools
  • Sub-Component: javap
  • Affected Version: 8
  • Priority: P5
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-02-07
  • Updated: 2014-07-29
  • Resolved: 2014-02-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u20Fixed 9 b04Fixed
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
.....................