harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Pervov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1450) [drlvm][classloader] Package-private final method is considered to be overridden in another package(IncompatibleClassChangeError)
Date Thu, 14 Sep 2006 11:11:24 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1450?page=all ]

Pavel Pervov updated HARMONY-1450:
----------------------------------

    Attachment: package_private_final.patch

Attached patch fixes described issue and, also, corrects DRLVM behaviour to throw VerifyError
instead of IncompatibleClassChangeError when an attempt is made to override final method.

> [drlvm][classloader] Package-private final method is considered to be overridden in another
package(IncompatibleClassChangeError)
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1450
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1450
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Dmitry A. Durnev
>         Attachments: package_private_final.patch
>
>
> The following test:
> A.java
> ----------------------------------
> package finalmethodtest;
> public abstract class A {
>     final void m() {
>         System.out.println("m");
>     }
> }
> -----------------------------------
> FinalMethodTest.java
> ------------------------------------
> import finalmethodtest.A;
> class B extends A {
>     private void m() {
>         
>     }
>     public void test() {
>         m();
>     }
> }
> public class FinalMethodTest {
>     public static void main(String[] args) {
>         new B().test();
>     }
> }
> --------------------------------------------------
> throws IncompatibleClassChangeError on
> Harmony but passes normally on RI.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message