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

StackMapTable does not unindent properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b04
    • Verification:
      Verified

      Backports

        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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: