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

harold seigel harold.seigel at oracle.com
Mon Jun 30 13:29:31 UTC 2014


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




More information about the hotspot-runtime-dev mailing list