harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3782) [classlib][beans]java.beans.DefaultPersistenceDelegate.mutates should delegate the comparation to super class if the number of arguments in the specified constructor is zero or the class of oldInstance does not explicitly declare an "equals" method.
Date Fri, 27 Apr 2007 06:59:15 GMT
[classlib][beans]java.beans.DefaultPersistenceDelegate.mutates should delegate the comparation
to super class if the number of arguments in the specified constructor is zero or the class
of oldInstance does not explicitly declare an "equals" method.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-3782
                 URL: https://issues.apache.org/jira/browse/HARMONY-3782
             Project: Harmony
          Issue Type: Bug
            Reporter: Leo Li


Here is a testcase:
public class MyDefaultPersistenceDelegate extends DefaultPersistenceDelegate
    {
        public boolean mutatesTo(Object oldInstance, Object newInstance)
        {
            return super.mutatesTo(oldInstance, newInstance);
        }
    }

public void test_mutates_with_no_equals()
    {
        Object o1 = new Object();
        Object o2 = new Object();
        
        MyDefaultPersistenceDelegate myDefaultPersistenceDelegate = new MyDefaultPersistenceDelegate();
        assertTrue(myDefaultPersistenceDelegate.mutatesTo(o1, o2));       
    }

RI passes.
Harmony fails.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message