This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Javadoc is not generated when "@Documented" annotations are used | ||
---|---|---|---|
Product: | apisupport | Reporter: | Petr Hejl <phejl> |
Component: | Harness | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 137437 |
Description
Petr Hejl
2009-01-22 16:28:55 UTC
Reproducible: javadoc-exec-packages: Generating Javadoc Javadoc execution Loading source files for package org.netbeans.api.extexecution... Loading source files for package org.netbeans.api.extexecution.input... Loading source files for package org.netbeans.api.extexecution.print... Constructing Javadoc information... com.sun.tools.javac.code.Symbol$CompletionFailure: file javax/annotation/Nonnull.class not found javadoc: error - fatal exception 1 error Similar to issue #152562. Javadoc execution fails only on JDK 5; JDK 6 prints a warning but continues: Loading source files for package org.netbeans.api.extexecution... Loading source files for package org.netbeans.api.extexecution.input... Loading source files for package org.netbeans.api.extexecution.print... Constructing Javadoc information... org/netbeans/api/annotations/common/NonNull.class(org/netbeans/api/annotations/common:NonNull.class): warning: Cannot find annotation method 'when()' in type 'javax.annotation.Nonnull': class file for javax.annotation.Nonnull not found org/netbeans/api/annotations/common/NullAllowed.class(org/netbeans/api/annotations/common:NullAllowed.class): warning: Cannot find annotation method 'when()' in type 'javax.annotation.Nonnull' org/netbeans/api/annotations/common/CheckForNull.class(org/netbeans/api/annotations/common:CheckForNull.class): warning: Cannot find annotation method 'when()' in type 'javax.annotation.Nonnull' Standard Doclet version 1.6.0_11 .... core-main #87b569ceac85 Don't forget to readd extexecution to the Javadoc list when in main. Extexecution added - main 4f681a1a05af. Seems to be working. Integrated into 'main-golden', will be available in build *200901230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/87b569ceac85 User: Jesse Glick <jglick@netbeans.org> Log: #157320: working around JDK 5 javadoc bug involving annotations. If an annotation is annotated with an annotation from a private package, JDK 5 javadoc would abort. (JDK 6 javadoc just prints a warning.) Working on builder machine too: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/javadoc/org-netbeans-modules-extexecution/org/netbeans/api/extexecution/input/InputProcessors.html#printing(org.openide.windows.OutputWriter,%20org.netbeans.api.extexecution.print.LineConvertor,%20boolean) BTW it seems that api.annotations.common is not in ${config.javadoc.stable}, so references to @NonNull etc. are not hyperlinked. Javadoc updated and marked as stable - main c4244db96109, 6f7b1932bd4d, d767586c251b. Should work in next pass. You might need to put api.annotations.common _before_ extexecution. I've just found that out. Thanks Jesse. main 3801d5fba7b4 |