[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Generic properties on interface and impl class
alesj
do-not-reply at jboss.com
Mon Oct 29 13:08:23 EDT 2007
Not excluding volatile also break covariant implementations:
| public class BeanInfoDoubleCovariantImpl extends BeanInfoNumberCovariantImpl
| {
| public Double getProperty()
| {
| return null;
| }
|
| public void setProperty(Double value)
| {
| }
| }
|
| public class BeanInfoNumberCovariantImpl
| {
| public Number getProperty()
| {
| return null;
| }
|
| public void setProperty(Number value)
| {
| }
| }
|
Excluding volatile takes care of them too. :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099930#4099930
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099930
More information about the jboss-dev-forums
mailing list