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

Incorrect indentation of StackMapTable entries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: tools
    • Environment:

      8.0 b126

    • Subcomponent:
    • Resolved In Build:
      b04
    • Verification:
      Verified

      Backports

        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

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jjg Jonathan Gibbons
                Reporter:
                ogb Oleg Barbashov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: