RFR: 8333749: Consolidate ConstantDesc conversion in java.base [v3]

Chen Liang liach at openjdk.org
Thu Jun 6 21:44:59 UTC 2024


> In java.base, especially in bytecode generators, we have many different methods converting known valid Class and MethodType into ClassDesc and MethodTypeDesc. These conversions should be consolidated into the same utility method for the ease of future maintenance.

Chen Liang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision:

 - Merge branch 'master' of https://github.com/openjdk/jdk into cleanup/consolidate-todesc
 - Add referenceClassDesc, move ReferenceClassDescImpl.ofValidatedBinaryName to ConstantUtils.binaryNameToDesc
 - mt -> md (desc)
 - Missed license header
 - Consolidate class/mt to desc operations

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/19585/files
  - new: https://git.openjdk.org/jdk/pull/19585/files/3e28306f..89bc5d8d

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=19585&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=19585&range=01-02

  Stats: 2350 lines in 73 files changed: 2189 ins; 26 del; 135 mod
  Patch: https://git.openjdk.org/jdk/pull/19585.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19585/head:pull/19585

PR: https://git.openjdk.org/jdk/pull/19585


More information about the core-libs-dev mailing list