[code-reflection] RFR: Enable pattern matching for JavaType hierarchy

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Apr 26 21:14:09 UTC 2024


On Fri, 26 Apr 2024 19:37:53 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> For `TypeVarRef` should we collapse the methods `methodOwner` and `classOwner` to `owner()`, or in addition to, and document one should pattern match on the resulting object.

I considered that when I did the original work - but it feels odd to just return Object? Perhaps a new sealed type for both JavaType and MethodRef?

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

PR Comment: https://git.openjdk.org/babylon/pull/64#issuecomment-2080124303


More information about the babylon-dev mailing list