harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Khaschansky (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-1763) [classlib][beans] method java.beans.PropertyDescriptor.equals(Object) throws ClassCastException
Date Mon, 09 Oct 2006 09:33:21 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-1763?page=comments#action_12440837 ] 
            
Oleg Khaschansky commented on HARMONY-1763:
-------------------------------------------

Verified, thanks, Nathan.

> [classlib][beans] method java.beans.PropertyDescriptor.equals(Object) throws ClassCastException
> -----------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1763
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1763
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Oleg Khaschansky
>         Assigned To: Nathan Beyer
>            Priority: Minor
>         Attachments: harmony-1763-test.patch, harmony-1763.patch
>
>
> The test below throws ClassCastException on Harmony but passes on RI.
> I will provide a patch for this issue and a unit test.
> ----------------------------------------------------------------
> import java.beans.*;
> import java.lang.reflect.*;
> public class Test {
>         public static void main(String[] args) {       
>                 PropertyDescriptor toRet = null;
>                 try {
>                         toRet = new PropertyDescriptor("p", Bean.class );
>                         toRet.setBound( true );
>                 } catch (IntrospectionException e) {
>                         e.printStackTrace();
>                 }
>                 Method m = null;
>                 try {
>                         m = HelpClass.class.getDeclaredMethod("f_static",
> (Class[])null);
>                 } catch (NoSuchMethodException e) {
>                         e.printStackTrace();
>                 }
>                 toRet.equals(m);
>                 System.out.println("PASSED"); 
>         }
> }
> class Bean {
>     public void setP(int i) {}
>     public int getP() {return 0;}
> }
> class HelpClass {
>         public HelpClass () {}
>         public static void f_static () {}               
> }
> ----------------------------------------------------------------

-- 
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