RFR: 8304161: Add TypeKind.from to derive from TypeDescriptor.OfField

liach duke at openjdk.org
Tue Mar 14 17:20:11 UTC 2023


Such an API allows creating TypeKind from both Class and ClassDesc than having to call descriptorString() explicitly at every use site.

See https://mail.openjdk.org/pipermail/classfile-api-dev/2023-March/000240.html for context.

Upgraded usages of `fromDescriptor` to `from` in applicable use sites in Classfile API and its tests.

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

Commit messages:
 - 8304161: Add TypeKind.from to derive from TypeDescriptor.OfField

Changes: https://git.openjdk.org/jdk/pull/13024/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13024&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8304161
  Stats: 17 lines in 6 files changed: 10 ins; 0 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/13024.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/13024/head:pull/13024

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


More information about the core-libs-dev mailing list