[code-reflection] RFR: Add common supertype for type-variable owners
Paul Sandoz
psandoz at openjdk.org
Mon Apr 29 17:34:16 UTC 2024
On Mon, 29 Apr 2024 17:03:36 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This is a followup of https://git.openjdk.org/babylon/pull/64
>
> The goal is to define a common supertype for type-variable owner, namely `Type>
>
> This is a sealed interface implemented by both `MethodRef` and `ClassType`.
Marked as reviewed by psandoz (Lead).
src/java.base/share/classes/java/lang/reflect/code/type/JavaType.java line 274:
> 272: * @return a type-variable reference.
> 273: */
> 274: static TypeVarRef typeVarRef(String name, ClassType owner, JavaType bound) {
Collapse the two `typeVarRef` methods to one accepting `Owner`?
-------------
PR Review: https://git.openjdk.org/babylon/pull/66#pullrequestreview-2029118258
PR Review Comment: https://git.openjdk.org/babylon/pull/66#discussion_r1583450911
More information about the babylon-dev
mailing list