Why am I getting a ClassCastException when generating javadocs?

后端 未结 4 1015
日久生厌
日久生厌 2020-12-08 09:19

I\'m using ant to generate javadocs, but get this exception over and over - why?

I\'m using JDK version 1.6.0_06.

[javadoc] java.lan         


        
4条回答
  •  南笙
    南笙 (楼主)
    2020-12-08 09:57

    It looks like this has been reported as a Java bug. It appears to be caused by using annotations from a 3rd party library (like JUnit) and not including the jar with that annotation in the javadoc invocation.

    If that is the case, just use the -classpath option on javadoc and include the extra jar files.

提交回复
热议问题