Setter methods fail when a bean overrides a method with a subclass
------------------------------------------------------------------
Key: STS-759
URL: http://www.stripesframework.org/jira/browse/STS-759
Project: Stripes
Issue Type: Bug
Components: Validation
Affects Versions: Release 1.5.3
Environment: All OS, Java 6
Reporter: Tyler Elliott
A property cannot be set on a bean when that bean extends (or implements) an
abstract class (or interface) that defines the getter to return a super class
of the one defined by the concrete class.
This is related to validation bugs that I've seen before, as well as the
following sun bug.
http://bugs.sun.com/view_bug.do?bug_id=6794807
For example
abstract class Test {
public abstract Object getId();
}
public class TestImpl extends Test {
private String id;
public void setId(String id) {this.id = id;}
@Override
public String getId() {return id;}
}
In this case, stripes cannot set the ID because Introspector finds no setter
that takes an Object argument.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development