Uploaded image for project: 'Maven Javadoc Plugin'
  1. Maven Javadoc Plugin
  2. MJAVADOC-416

java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be cast to com.sun.javadoc.AnnotationTypeDoc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.10
    • 2.10.1
    • None
    • None

    Description

      This is a new issue in 2.10, it does not exist in 2.9.1. I'm raising it as blocker, and we cannot use this version.

      It does not happen on the basic Maven archetype.

      Reproduce:

      mvn org.apache.maven.plugins:maven-javadoc-plugin:2.10:jar

      Can you can compare this against 2.9.1 which works OK:

      mvn org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar

      Stack trace;

      [ERROR] java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be cast to com.sun.javadoc.AnnotationTypeDoc
      [ERROR] at com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46)
      [ERROR] at com.sun.tools.doclets.internal.toolkit.util.Util.isDeprecated(Util.java:811)
      [ERROR] at com.sun.tools.doclets.formats.html.PackageWriterImpl.writeClassesSummary(PackageWriterImpl.java:114)
      [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.buildClassSummary(PackageSummaryBuilder.java:175)
      [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
      [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.invokeMethod(PackageSummaryBuilder.java:81)
      [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
      [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.buildSummary(PackageSummaryBuilder.java:148)
      [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
      [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.invokeMethod(PackageSummaryBuilder.java:81)
      [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
      [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.buildPackageDoc(PackageSummaryBuilder.java:106)
      [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
      [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.invokeMethod(PackageSummaryBuilder.java:81)
      [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
      [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.PackageSummaryBuilder.build(PackageSummaryBuilder.java:92)
      [ERROR] at com.sun.tools.doclets.formats.html.HtmlDoclet.generatePackageFiles(HtmlDoclet.java:183)
      [ERROR] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:120)
      [ERROR] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64)
      [ERROR] at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42)
      [ERROR] at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
      [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
      [ERROR] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
      [ERROR] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
      [ERROR] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
      [ERROR] at com.sun.tools.javadoc.Start.begin(Start.java:128)
      [ERROR] at com.sun.tools.javadoc.Main.execute(Main.java:41)
      [ERROR] at com.sun.tools.javadoc.Main.main(Main.java:31)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alex.e.c Alex Collins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: