JDK-8033726 : StackMapTable does not unindent properly
  • Type: Bug
  • Component: tools
  • Sub-Component: javap
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-02-05
  • Updated: 2016-02-03
  • Resolved: 2014-02-07
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
Related Reports
Duplicate :  
Duplicate :  
Description
Try 
javap -v java.lang.String

Look at this fragment of the output, and look at the relative indent of StackMapTable: and LineNumberTable:

       183: aload         6
       185: putfield      #421                // Field value:[C
       188: return        
      StackMapTable: number_of_entries = 12
           frame_type = 255 /* full_frame */
          offset_delta = 17
          locals = [ class java/lang/String, class "[I", int, int ]
          stack = []
           frame_type = 12 /* same */
           frame_type = 18 /* same */
           frame_type = 254 /* append */
          offset_delta = 10
          locals = [ int, int, int ]
             frame_type = 252 /* append */
            offset_delta = 23
            locals = [ int ]
               frame_type = 13 /* same */
               frame_type = 250 /* chop */
              offset_delta = 12
               frame_type = 250 /* chop */
              offset_delta = 5
               frame_type = 254 /* append */
              offset_delta = 11
              locals = [ class "[C", int, int ]
                 frame_type = 252 /* append */
                offset_delta = 31
                locals = [ int ]
                   frame_type = 250 /* chop */
                  offset_delta = 11
                   frame_type = 249 /* chop */
                  offset_delta = 8

              LineNumberTable:
                line 232: 0
                line 233: 4
                line 234: 8