JDK-8033913 : Incorrect indentation of StackMapTable entries
  • Type: Bug
  • Component: tools
  • Sub-Component: javap
  • Affected Version: 8
  • Priority: P4
  • 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
Obtain the javap's output that contains StackMapTable
(e.g. "-verbose", 
public class A {
    public void a() {
        for (int i = 0; i < 10; i++) {
            System.out.println(i);
        }
    }
}
)
The alignment of entries looks illogical:

StackMapTable: number_of_entries = 2
           frame_type = 252 /* append */
          offset_delta = 2
          locals = [ int ]
             frame_type = 250 /* chop */
            offset_delta = 18


Comments
Yes, the weird indentation is confirmed on jdk 9
07-02-2014

Need more details, more than just "the alignment looks illogical". I'll also look at the code to see if anything stands out. Also, please confirm on latest jdk9/dev, after the fix for JDK-8033726
07-02-2014