Is there a substitute for xdoclet that supports generics?
I have an old EJB (2.1) project that uses xdoclet (1.2.3) to generate the EJB interfaces. Unfortunately xdoclet makes it impossible to use generic开发者_StackOverflow社区s in the method signatures.
Is there a substitute or other way to to allow generics in the parameters?
Here is the minimum type of generics use I'm looking for:
public Object ejbMethod(Collection<String> param) { return null;}
Of course the more the better.
Try replacing xjavadoc-1.x.jar with the latest in the library. ( Moving from xjavadoc-1.1.jar to xjavadoc-1.5.jar worked for me)
You might want to check XDT-1581, it has an (unreleased) patch for support of generics in the xdoclet EJB module. I didn't test it though.
PS: AFAIK, XDoclet 2 (which has an Ejb plugin) has support for generics.
精彩评论