It looks to me like composite components' attributes don't allow generic types. Here's a simple test case:
<cc:attribute name="stringList" type="java.util.List<java.lang.String>" />
The error I get is,
java.lang.ClassNotFoundException: java.util.List<java.lang.String>
(If I replace the < and > with < and >, I get a error because that's not valid XHTML.)
I know that the gen开发者_开发百科eric part of the type will be erased at runtime, but I was hoping to use generics here just for clarity of reading the code. Is that possible?
no man its not possible
精彩评论