On Thu, 16 Dec 2021 17:44:04 GMT, Vicente Romero <vrom...@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, there are only 
> type annotations on parameters, but it is also invoked to extract type 
> annotations applied to exception types for example. This bug affects the 
> behavior of method: 
> `java.lang.reflect.Executable::getAnnotatedExceptionTypes` which is not 
> behaving according to its specification. Given that this fix affects the 
> behavior of a method belonging to our API a CSR has been filed too. Please 
> review it at [JDK-8278926](https://bugs.openjdk.java.net/browse/JDK-8278926).
> 
> TIA

This pull request has now been integrated.

Changeset: 2eab86b5
Author:    Vicente Romero <vrom...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/2eab86b513a9e4566b3f5989f899ae44280d3834
Stats:     16 lines in 2 files changed: 11 ins; 1 del; 4 mod

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

Reviewed-by: jlahoda

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

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

Reply via email to