Created
May 18, 2012 22:28
Revisions
-
nking revised this gist
May 20, 2012 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,9 @@ If you're seeing java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be cast to com.sun.javadoc.AnnotationTypeDoc the classloader used by the javadoc tool is not finding your 3rd party annotation definitions. This is a problem present in JDK 1.6. -
nking revised this gist
May 20, 2012 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,8 @@ the classloader used by the javadoc tool is not finding your 3rd party annotatio This is a problem present in JDK 1.6. An quick workaround to enable the classloader to find the annotation definitions is to add them to the bootclasspath using the -bootclasspath option for javadoc. ----- Java language spec, 3rd edition: -
nking revised this gist
May 20, 2012 . 1 changed file with 15 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,3 +7,18 @@ This is a problem present in JDK 1.6. An quick workaround to enable the classloader to find the annotation definitions is to add them to the bootclasspath using the -bootclasspath option for javadoc. ----- Java language spec, 3rd edition: If the JVM is looking for references to another class or interface within a loaded class and determines that the bootstrap class loader didn't already load it, it uses the class loader delegation model for the first searches: - it uses the parent classloader to search for the class. If the class was not found using the parent class loader, it uses the class loader. The hierarchy of class loaders is: - bootstrap classloader is parent, - extensions classloader is child - system classloader is a child of extensions classloader - application specific classloaders are children of the system classloader. -
nking created this gist
May 18, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ If you're seeing java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be cast to com.sun.javadoc.AnnotationTypeDoc the classloader used by the javadoc tool is not finding your 3rd party annotation definitions. This is a problem present in JDK 1.6. An quick workaround to enable the classloader to find the annotation definitions is to add them to the bootclasspath using the -bootclasspath option for javadoc.