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

StackMapTable does not unindent properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 8
    • tools
    • b04
    • Verified

        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

              jjg Jonathan Gibbons
              jjg Jonathan Gibbons
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: