On 22/12/2011 1:11 PM, Daivish Shah wrote:
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.
This would imply that there is a serious run-time issue with Java 1.7 if
it will not run code compiled with earlier versions of Java. Not likely.
In previous versions of the JVM you could run code compiled for 1.4 and
1.5 under the 1.6 run-time.
Even if there is supposed to be upwards compatibility, moving to a 1.7
run-time probably still requires a bit of testing.
Ron
Thanks,
daivish.
On Wed, Dec 21, 2011 at 10:40 PM, Wayne Fay<wayne...@gmail.com> 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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org
--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org