Update BoundLookup/TableSwitchInstruction constructors to avoid redundant calculation

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 24
    • Component/s: core-libs

      These 2 classes' constructors currently perform double-read and do not sanitize data on first read, to compute the instruction size. We can utilize flexible constructor bodies to perform the reading, validation, and even the final instance field assignment before the super constructor call.

            Assignee:
            Unassigned
            Reporter:
            Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: