2

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 generics 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.

Yishai
  • 90,445
  • 31
  • 189
  • 263

2 Answers2

2

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)

giddi
  • 103
  • 5
1

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.

Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124