Menu

#74 does not build with Sun Java 1.5

Bug
open
nobody
PDFDoclet (42)
5
2007-04-19
2007-04-19
No

Hi,

I am getting the following errors:

[javac] /home/twerner/debian/tarballs/pdfdoclet-1.0.2/src/main/com/tarsec/javadoc/pdfdoclet/filter/FilteredClassDoc.java:27: com.tarsec.javadoc.pdfdoclet.filter.FilteredClassDoc is not abstract and does not override abstract method enumConstants() in com.sun.javadoc.ClassDoc
[javac] public class FilteredClassDoc implements ClassDoc {
[javac] ^
[javac] /home/twerner/debian/tarballs/pdfdoclet-1.0.2/src/main/com/tarsec/javadoc/pdfdoclet/filter/FilteredPackageDoc.java:23: com.tarsec.javadoc.pdfdoclet.filter.FilteredPackageDoc is not abstract and does not override abstract method annotations() in com.sun.javadoc.PackageDoc
[javac] public class FilteredPackageDoc implements PackageDoc {
[javac] ^
[javac] /home/twerner/debian/tarballs/pdfdoclet-1.0.2/src/main/com/tarsec/javadoc/pdfdoclet/filter/FilteredRootDoc.java:25: com.tarsec.javadoc.pdfdoclet.filter.FilteredRootDoc is not abstract and does not override abstract method isAnnotationType() in com.sun.javadoc.Doc
[javac] public class FilteredRootDoc implements RootDoc {
[javac] ^

Discussion

  • Markus Ueberall

    Markus Ueberall - 2007-04-20

    Logged In: YES
    user_id=1774771
    Originator: NO

    Hi Thorsten,

    This is due to the new features in the Javadoc 5.0 Doclet API (added support for generics, enums, varargs, annotations, and annotation types). Unless this is fixed in cvs, you'll have to add some 28 wrapper methods ;) -- which is, however, a very straightforward task (including comments, the resulting diff is less than 8kb in size).

    After that, the resulting build worked flawlessly w/ Sun Java 1.6.0_01 (though I have to admit that I didn't use the included Maven build file but wrote my own Ant script in order to get a 'non-monolithic' version of the JAR).

    Ad astra, Markus

     
  • Torsten Werner

    Torsten Werner - 2007-04-20

    Logged In: YES
    user_id=402275
    Originator: YES

    Hi Markus,

    do you already have the 'resulting diff'?

    Cheers,
    Torsten

     
  • Markus Ueberall

    Markus Ueberall - 2007-04-20

    Logged In: YES
    user_id=1774771
    Originator: NO

    Hi Thorsten,

    I just uploaded it (cf. 'Patches item #1704640')...

    Ad astra, Markus

     

Log in to post a comment.

MongoDB Logo MongoDB