RFR: 8256693: getAnnotatedReceiverType parameterizes types too eagerly
Rafael Winterhalter
winterhalter at openjdk.java.net
Fri Nov 27 22:39:56 UTC 2020
On Tue, 24 Nov 2020 15:56:05 GMT, Joel Borggrén-Franck <jfranck at openjdk.org> wrote:
>> The fix for JDK-8256693 too often produces a ParameterizedType as the result of getAnnotatedReceiverType().getType() . A ParameterizedType is necessary when this type or any of its transitive owner types has type parameters, but should be avoided if this isn't the case.
>>
>> This implementation recursively creates a chain of ParameterizedTypes starting from the outermost type that has type parameters.
>
> @raphw can you take a look at this?
I just ran it a bit and this seems right to me. I just had an error reported in relation to this and I think this is fixed by your changes, too. (https://github.com/raphw/byte-buddy/issues/983)
-------------
PR: https://git.openjdk.java.net/jdk/pull/1414
More information about the core-libs-dev
mailing list