Closed glassfishrobot closed 11 years ago
@glassfishrobot Commented Reported by josefreire
@glassfishrobot Commented josefreire said: Created an attachment (id=1) Proposed patch
@glassfishrobot Commented josefreire said: Could someone please look at this issue?
It's been around for some time, and already has a proposed patch.
@glassfishrobot Commented josefreire said: This issue can be closed.
With Java 7, the Introspector correctly returns the property type if the class is generic.
@glassfishrobot Commented kchung said: work with jdk 7.
@glassfishrobot Commented File: issue-7-proposedpatch.diff Attached By: josefreire
@glassfishrobot Commented This issue was imported from java.net JIRA UEL-7
@glassfishrobot Commented Marked as fixed on Thursday, March 14th 2013, 11:26:54 am
When we have a class like:
public class GenericsTestController {
private E value;
public E getValue()
{ return value; }
public void setValue(E value)
{ this.value = value; }
}
And we have this class to use as a managed bean (integerTest): public class IntegerTestController extends GenericsTestController {
public String add()
{ setValue(getValue()+1); return null; }
public String subtract()
{ setValue(getValue()-1); return null; }
}
This JSF code will not work: