RFR(S) 8026894: Improve VerifyError message about overriding a final method

Frederic Parain frederic.parain at oracle.com
Mon Jun 30 13:46:20 UTC 2014


Looks good to me,

Fred

On 30/06/2014 15:29, harold seigel wrote:
> Hi,
>
> Please review this small enhancement for bug 8026894.  This change adds
> the class name to the Exception message when a method in a subclass
> overrides a final method in a super class.  Here's a sample old message,
> followed by the improved message:
>
>     Exception in thread "main" java.lang.VerifyError: class Overrider
>     overrides final method m.(Ljava/lang/String;)V
>
>     Exception in thread "main" java.lang.VerifyError: class Overrider
>     overrides final method pkg.HasFinal.m(Ljava/lang/String;)V
>
>
> Open webrev:  http://cr.openjdk.java.net/~hseigel/bug_8026984/
>
> Bug:  https://bugs.openjdk.java.net/browse/JDK-8026894
>
> The fix was tested with the JCK lang and vm tests, the default method
> tests, the UTE verifier and quick tests, and the JTREG hotspot tests.
>
> Thanks, Harold
>
>

-- 
Frederic Parain - Oracle
Grenoble Engineering Center - France
Phone: +33 4 76 18 81 17
Email: Frederic.Parain at oracle.com


More information about the hotspot-runtime-dev mailing list