[
https://issues.jboss.org/browse/AS7-4557?page=com.atlassian.jira.plugin.s...
]
Ondrej Zizka updated AS7-4557:
------------------------------
Priority: Minor (was: Major)
As a workaround, the affected jars are excluded.
Changing to Minor.
Javadoc tool fails on certain AS dependencies' sources.
-------------------------------------------------------
Key: AS7-4557
URL:
https://issues.jboss.org/browse/AS7-4557
Project: Application Server 7
Issue Type: Bug
Components: Build System
Reporter: Ondrej Zizka
Priority: Minor
Including certain AS 7 deps sources into the aggregated javadoc (AS7-582) causes it to
throw the exception below.
Some of these are:
{code:xml}
<include>org.infinispan:infinispan-core</include>
<include>org.jboss.as:jboss-as-controller-client</include>
<include>org.jboss:jboss-dmr</include>
{code}
I'm not sure whether we have someone specialized on JDK tools.
It's this known bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6442982
Also discussed here:
http://stackoverflow.com/questions/44853/why-am-i-getting-a-classcastexce...
Workaround: Find what annotation causes that, and include it in JavaDoc's classpath.
{code}
[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.ClassWriterImpl.writeClassDeprecationInfo(ClassWriterImpl.java:242)
[ERROR] at
com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildDeprecationInfo(ClassBuilder.java:229)
[ERROR] at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
[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.ClassBuilder.invokeMethod(ClassBuilder.java:101)
[ERROR] at
com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
[ERROR] at
com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildClassDoc(ClassBuilder.java:124)
[ERROR] at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
[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.ClassBuilder.invokeMethod(ClassBuilder.java:101)
[ERROR] at
com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
[ERROR] at
com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(ClassBuilder.java:108)
[ERROR] at
com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:155)
[ERROR] at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:164)
[ERROR] at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:106)
[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)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira