You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2006/10/06 20:07:24 UTC

[jira] Created: (HARMONY-1765) [classlib][beans] PropertyDescriptor(String, Class, String, String) throws IntrospectionException

[classlib][beans] PropertyDescriptor(String, Class, String, String) throws IntrospectionException
-------------------------------------------------------------------------------------------------

                 Key: HARMONY-1765
                 URL: http://issues.apache.org/jira/browse/HARMONY-1765
             Project: Harmony
          Issue Type: Improvement
          Components: Non-bug differences from RI
         Environment: winXP
            Reporter: Alexei Zakharov
            Priority: Minor


RI's implementation of the constructor java.beans.PropertyDescriptor(String property, Class beanClass, String readMethod, String writeMethod) throws IntrospectionException if invalid *write* method name is specified and throws nothing in case of invalid *read* method name. However, in another constructor - PropertyDescriptor(String property, Method readMethod, Method writeMethod) - RI validates both methods and throws IntrospectionException in case of any error.

IMO such behavior is inconsistent. No one objected in the list [1][2] to preserving the current Harmony behavior.

Harmony currently throws exception in both cases (for read and write methods) in PropertyDescriptor(String, Class, String, String) as well as in PropertyDescriptor(String, Method, Method).

[1] http://mail-archives.apache.org/mod_mbox/incubator-harmony-dev/200609.mbox/%3c2c9597b90609190451g74fec356k2270f515dc5e7ef6@mail.gmail.com%3e
[2] http://mail-archives.apache.org/mod_mbox/incubator-harmony-dev/200610.mbox/%3c26c14c2a0610060538x27cec371tb9d17dca0e22b7d7@mail.gmail.com%3e



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