RFR: JDK-8202469 - Type annotations on type variable bounds are not computed correctly for generic types

Rafael Winterhalter rafael.wth at gmail.com
Mon Sep 9 22:12:13 UTC 2019


the type annotation parser does not currently resolve the type path of type
variable bounds correctly. If a type variable bound is itself a
parameterized type, the index is not computed correctly. This patch adds
checks for the type variable bound types to correct the index computation.

Webrev: http://cr.openjdk.java.net/~winterhalter/8202469/

The patch includes tests for all different scenarios. The reported issue is
only one symptom of the problem but correcting the index computation also
solves JDK-8202473.

Thank you for the review!

More information about the core-libs-dev mailing list