HI Wayne,

You are absolutely right, I tried using JDK 1.7 version and i am able to
complete it successfully. But if i execute "mvn -X javadoc:javadoc"  i can
see it still gives me warning for my Annotation values which is really
strange still looks like javadoc doesn't able to find those JAR in there
classpath that's why it gives me WARNING message..... yes atleast i am able
to complete my build successfully.

But do you know is there any work around for JDK 1.6 version to fix this
issue, As we might not able to change JDK version for our Production
environment or build server as we have dependency with Jboss version.

Thanks,
daivish.



On Wed, Dec 21, 2011 at 10:40 PM, Wayne Fay <[email protected]> wrote:

> > Standard Doclet version 1.6.0_29
> > Building tree for all the packages and classes
> ........
> > [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)
>
> First realize this is an issue inside the JDK Javadoc tool and not a
> problem with Maven. You can see this from the stacktrace reported. If
> you run "mvn -X ..." you will get the full command line used to
> execute Javadoc and it will (should) show you the same error.
>
> So knowing that, you should look for this issue in the Sun/Oracle bug
> database. I did, and your problem looks like this one (fixed in jdk7
> b73):
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6709246
>
> Try building your project and the javadocs with jdk7 and see if that
> solves your problem.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to