[code-reflection] RFR: Add support for more types [v2]

Maurizio Cimadamore mcimadamore at openjdk.org
Thu Apr 25 10:28:02 UTC 2024


On Mon, 15 Apr 2024 09:29:04 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Add support for type-variable owner
>
> src/java.base/share/classes/java/lang/reflect/code/type/TypeVarRef.java line 35:
> 
>> 33: public final class TypeVarRef implements JavaType {
>> 34: 
>> 35:     // @@@: how do we encode tvar owner?
> 
> As the comment indicates, ideally a type-variable reference should also points to its owner (a type or a method). I'm not 100% sure how to encode that in the `TypeElement` structure (see also the toplevel PR summary).

This is now handled as part of https://github.com/openjdk/babylon/pull/51/commits/52fc6e99349a47b0f4757329093e21286745b7c5

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

PR Review Comment: https://git.openjdk.org/babylon/pull/51#discussion_r1579232337


More information about the babylon-dev mailing list