History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: STS-285
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Tim Fennell
Reporter: Tim Fennell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Stripes

Properties whose accessors are specified in interfaces with type parameters are not handled correctly

Created: 13/Oct/06 07:21 PM   Updated: 13/Oct/06 07:34 PM
Component/s: Validation
Affects Version/s: Release 1.4.1
Fix Version/s: Release 1.4.2


 Description  « Hide
At it's simplest, if you have an interface:
    public interface Foo<T> { void setProp(T prop); }

and an implementing class:
    public class Bar implements Foo<String> { void setProp(String prop) { } }

stripes will treat Bar.prop as if it is of type object. This is a direct result of the JDK Introspector returning a PropertyDescriptor that contains a bridge method with the parameter type Object. To fix this it is necessary to identify the appropriate/matching non-bridge method and read type information from there.


 All   Comments   Change History      Sort Order:
Tim Fennell [13/Oct/06 07:34 PM]
This is now fixed on both the 1.4 branch and the trunk.