RFR: 8213905: reflection not working for type annotations applied to exception types in the inner class constructor

Joe Darcy darcy at openjdk.java.net
Thu Dec 16 18:05:03 UTC 2021


On Thu, 16 Dec 2021 17:44:04 GMT, Vicente Romero <vromero at openjdk.org> wrote:

> Hi,
> 
> Please review this change that is fixing a bug in reflection in particular in `sun.reflect.annotation.TypeAnnotationParser::buildAnnotatedTypes` the current code is assuming that for inner class constructors it is always working on type annotations on parameters, but it is also invoked to extract type annotations applied to exception types for example.
> 
> TIA

Hi Vicente.

Please file a CSR for the behavioral change.

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

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


More information about the core-libs-dev mailing list