commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19376] New: - NoSuchMethodException: Unknown property 'aRa'
Date Mon, 28 Apr 2003 01:31:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19376>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19376

NoSuchMethodException: Unknown property 'aRa'

           Summary: NoSuchMethodException: Unknown property 'aRa'
           Product: Commons
           Version: 1.5 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Bean Utilities
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: redsun_000@sina.com


beanutils cann't find property like 'aRa'.
Here is my test class:
import org.apache.commons.beanutils.*;
/**
 *
 * @author  leoj
 */
public class BeanUtilsTest {
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception {
        Object a = new A();

        String s = "ara";
        PropertyUtils.getProperty(a, s); // can work
        s = "aRa";
        PropertyUtils.getProperty(a, s); //NoSuchMethodException: Unknown 
property 'aRa'
    }
}

public class A {
    
    /** Creates a new instance of A */
    public A() {
    }
    
    /** Getter for property aRa.
     * @return Value of property aRa.
     *
     */
    public java.lang.String getARa() {
        return aRa;
    }
    
    /** Setter for property aRa.
     * @param aRa New value of property aRa.
     *
     */
    public void setARa(java.lang.String aRa) {
        this.aRa = aRa;
    }
    
    /** Getter for property ara.
     * @return Value of property ara.
     *
     */
    public java.lang.String getAra() {
        return ara;
    }
    
    /** Setter for property ara.
     * @param ara New value of property ara.
     *
     */
    public void setAra(java.lang.String ara) {
        this.ara = ara;
    }
    
    private String aRa;
    private String ara;
}

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message