[jboss-dev-forums] [Design of POJO Server] - Re: Annotation to metadata status
wolfc
do-not-reply at jboss.com
Wed Nov 21 15:04:33 EST 2007
Just try the following:
Collection<Class<? extends Collection>> c1 = new ArrayList<Class<? extends Collection>>();
| c1.add(ArrayList.class);
| c1.add(Collection.class);
| c1.add(String.class);
add(java.lang.Class<? extends java.util.Collection>) in java.util.Collection<java.lang.Class<? extends java.util.Collection>> cannot be applied to (java.lang.Class<java.lang.String>)
| c1.add(String.class);
| ^
| 1 error
As expected.
And then:
Collection<Class<?>> c1 = new ArrayList<Class<?>>();
| c1.add(ArrayList.class);
| c1.add(Collection.class);
| c1.add(String.class);
The collection of classes of many types.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106870#4106870
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106870
More information about the jboss-dev-forums
mailing list