JDK-8020981: Update methods of java.lang.reflect.Parameter to throw correct exceptions
Joe Darcy
joe.darcy at oracle.com
Sat Sep 14 00:45:14 UTC 2013
On 09/12/2013 01:02 PM, Eric McCorkle wrote:
> Hello,
>
> Please review this patch, which implements correct behavior for the
> Parameter Reflection API in the case of malformed class files.
>
> The bug report is here:
> https://bugs.openjdk.java.net/browse/JDK-8020981
>
> The webrev is here:
> http://cr.openjdk.java.net/~emc/8020981/
>
> This review is also on crucible. The ID is CR-JDK8TL-182.
>
> Thanks,
> Eric
Hi Eric,
The update to j.l.reflect.Modifiers is incorrect; the field in question
is only supposed to encode *source* modifiers.
The new exception types needs to declare a serialVersionUID field since
it is a serializable type (thanks RMI for making all Throwables
serializable!).
-Joe
More information about the core-libs-dev
mailing list