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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P5
    • None
    • Affects Version/s: None
    • Component/s: 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.


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

              Created:
              Updated: