[jdk16] RFR: 8256693: getAnnotatedReceiverType parameterizes types too eagerly [v2]
Joel Borggrén-Franck
jfranck at openjdk.java.net
Thu Dec 17 10:07:13 UTC 2020
> The fix for JDK-8256693 too often produces a ParameterizedType as the result of getAnnotatedReceiverType().getType() . A ParameterizedType is necessary only 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.
>
> See here for the now closed JDK 17 pr: https://github.com/openjdk/jdk/pull/1414
Joel Borggrén-Franck has updated the pull request incrementally with one additional commit since the last revision:
Use constant for expected cases
-------------
Changes:
- all: https://git.openjdk.java.net/jdk16/pull/33/files
- new: https://git.openjdk.java.net/jdk16/pull/33/files/c04169d8..99e03115
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk16&pr=33&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk16&pr=33&range=00-01
Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
Patch: https://git.openjdk.java.net/jdk16/pull/33.diff
Fetch: git fetch https://git.openjdk.java.net/jdk16 pull/33/head:pull/33
PR: https://git.openjdk.java.net/jdk16/pull/33
More information about the core-libs-dev
mailing list