RFR: 8357653: Inner classes of type parameters emitted as raw types in signatures [v10]
Aggelos Biboudis
abimpoudis at openjdk.org
Wed Jul 9 11:47:41 UTC 2025
On Tue, 8 Jul 2025 21:09:10 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> Aggelos Biboudis has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Fix imports again
>
> src/jdk.compiler/share/classes/com/sun/tools/javac/code/Types.java line 2280:
>
>> 2278: * @param nextType a unary operator that emits the next type to be examined
>> 2279: */
>> 2280: public Type asOuter(Type t, Symbol sym, UnaryOperator<Type> nextType) {
>
> IMHO, this method should be called `asSuperXYZ` -- because that's what it does. It basically calls `asSuper` repeatedly (on the types returned by the unary operator) until a match is found.
Ah, `asSuperClosure` would be nice. But there is another one called `superClosure`. What about `asSuperUpward`?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25451#discussion_r2194805139
More information about the compiler-dev
mailing list