RFR: 8256693: getAnnotatedReceiverType parameterizes types too eagerly [v2]

Joel Borggrén-Franck jfranck at openjdk.java.net
Tue Dec 1 21:18:11 UTC 2020


> 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.

Joel Borggrén-Franck has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Merge remote-tracking branch 'origin/master' into jdk8256693
 - Add javadoc note explaining empty type arguments array
   
   Check type argument arrays from ParameterizedType and
   AnnotatedParameterizedType has same length testing generation of the
   empty case.
 - 8256693: getAnnotatedReceiverType parameterizes types too eagerly

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1414/files
  - new: https://git.openjdk.java.net/jdk/pull/1414/files/f82b30a7..2f138ce8

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1414&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1414&range=00-01

  Stats: 27103 lines in 668 files changed: 15342 ins; 4027 del; 7734 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1414.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1414/head:pull/1414

PR: https://git.openjdk.java.net/jdk/pull/1414


More information about the core-libs-dev mailing list