[lworld] RFR: JDK-8251986: [lworld] implement Class::valueType and Class::referenceType in Java [v3]

Mandy Chung mchung at openjdk.java.net
Thu Aug 20 19:02:20 UTC 2020


> Now that javac generates the reference projection class as a sealed type,
> this patch reimplements  `Class::valueType` and `Class::referenceType` in Java.
> VM no longer has any knowledge of the value projection type and reference projection type.
> 
> This patch includes a temporary workaround to disable the preview feature check
> for sealed types because inline types are not (yet) a preview feature in valhalla repo.
> This workaround should be removed when it's time to make inline class a preview feature.

Mandy Chung 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 ten additional commits since
the last revision:

 - Merge branch 'lworld' of https://github.com/openjdk/valhalla into projection-types
 - clean up the initialization of projectionTypes field
 - remove debug println statement
 - Merge branch 'lworld' of https://github.com/openjdk/valhalla into projection-types
 - supports_sealed_types checks only the major version
 - remove unused import
 - disable preview feature check for sealed types
 - Merge branch 'lworld' of https://github.com/openjdk/valhalla into lworld
 - implement Class::referenceType and Class::valueType in Java

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

Changes:
  - all: https://git.openjdk.java.net/valhalla/pull/152/files
  - new: https://git.openjdk.java.net/valhalla/pull/152/files/36d4d860..0e576ad3

Webrevs:
 - full: https://webrevs.openjdk.java.net/valhalla/152/webrev.02
 - incr: https://webrevs.openjdk.java.net/valhalla/152/webrev.01-02

  Stats: 123 lines in 6 files changed: 77 ins; 15 del; 31 mod
  Patch: https://git.openjdk.java.net/valhalla/pull/152.diff
  Fetch: git fetch https://git.openjdk.java.net/valhalla pull/152/head:pull/152

PR: https://git.openjdk.java.net/valhalla/pull/152



More information about the valhalla-dev mailing list