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

Consolidate ConstantDesc conversion in java.base

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • core-libs
    • None
    • b02

      While the official ways to convert Class and MethodType to ClassDesc and MethodTypeDesc are to call .decribeConstable().orElseThrow() or through descriptor strings, in java.base, we have many scenarios (mostly in ClassFile generation) where we know we don't have hidden classes and can always trust our inputs. Such conversions will be handled by new methods in ConstantUtils, so it will be easier for us to optimize implementation across the board later.

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: