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

Want better test for stack size mismatch in java.lang.classfile.CodeBuilder

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • None
    • None
    • core-libs
    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      Checking for 'Stack size mismatch' is currently done in 'java.base/jdk.internal.classfile.impl.StackMapGenerator'.
      It would have been nice if this was tested earlier by Codebuilder when the instructions was created.

      For example, by keeping track of the stack size curing code building.

      It is good programming practice to catch errors as early as possible.


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: