Ara said:
>>- Would it be possible e.g. by adding the missing methods it's
complaining
>>about, to get it to work under both the existing and the new versions?
>>(ultimately, I guess xjavadoc will make this irrelevant?)
>
>Yes it's possible. It's used by the code used in serialuid package. This
>package will be removed completely when xjavadoc gets ready :o)
>Anyway I don't have JDK 1.4 here, anyone volunteering to add the missing
>1.4 methods? I mean before v1.1 release.

Are you sure it's possible?  The missing position() method (from the 
com.sun.javadoc.Doc interface) is declared as returning a 
com.sun.javadoc.SourcePosition, but this class is new to 1.4.  If I add that 
method into xdocelet.util.serialveruid.DocImpl, then compiling under earlier 
JDKs won't find the SourcePosition class so it'll fail to build under 1.2 
and 1.3 instead...

FieldDocImpl.constantValue() and MethodDocImpl.overriddenMethod() don't look 
so bad, as they return a java.lang.Object and com.sun.javadoc.MethodDoc 
respectively, and I presume I'd just throw an UnsupportedOperationException 
anyway (like most of the other methods are doing).  I don't know how to get 
around the position() problem, though, short of adding a 
com.sun.javadoc.SourcePosition of our own?  Or do we just change using.html 
to say "1.2 & 1.3 only" for now, and migrate to "1.4 and above only" once 
it's released (or switch to xjavadoc instead, of course)?


Andrew.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to