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: | IllegalStateException: ' @author felenda Long Comment LongComment Long Comment Long Comment Long Comment Long Comment Long Comment Long Comment Long Comment Long Comment Long Comment Long Comment | ||
---|---|---|---|
Product: | java | Reporter: | pribyl <pribyl> |
Component: | Javadoc | Assignee: | issues@editor <issues> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | gaxzero, gtzabari, jiriprox, jungi, mentlicher, mgoe, rbrink, sdvic, sustaining |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=42836 | ||
Issue Type: | DEFECT | Exception Reporter: | 42836 |
Attachments: | ide log |
Description
pribyl
2008-04-02 13:44:27 UTC
java.lang.NullPointerException at org.netbeans.modules.java.editor.javadoc.DocPositions.resolve(DocPositions.java:189) Caused: java.lang.IllegalStateException: '@author vs157455 ' org.netbeans.modules.java.editor.javadoc.DocPositions@1132b21 token sequence dump: T[0]: "* " <131,133> OTHER_TEXT[5] DefT, IHC=2635236 T[1]: "@author" <133,140> TAG[1] DefT, IHC=32129320 T[2]: " " <140,141> OTHER_TEXT[5] DefT, IHC=6012305 T[3]: "vs157455" <141,149> IDENT[0] DefT, IHC=16415955 *[4]: "\n *\n " <149,154> OTHER_TEXT[5] DefT, IHC=18420373 at org.netbeans.modules.java.editor.javadoc.DocPositions.resolve(DocPositions.java:196) at org.netbeans.modules.java.editor.javadoc.DocPositions.getTags(DocPositions.java:129) at org.netbeans.modules.java.editor.javadoc.JavadocImports.computeReferencedElements(JavadocImports.java:115) at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.handleJavadoc(SemanticHighlighter.java:686) at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitClass(SemanticHighlighter.java:1218) at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitClass(SemanticHighlighter.java:410) at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:605) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:67) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:91) at com.sun.source.util.TreeScanner.scan(TreeScanner.java:90) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:100) at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitCompilationUnit(SemanticHighlighter.java:744) at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitCompilationUnit(SemanticHighlighter.java:410) at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:483) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:67) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:91) at org.netbeans.modules.java.editor.semantic.SemanticHighlighter.process(SemanticHighlighter.java:250) at org.netbeans.modules.java.editor.semantic.SemanticHighlighter.process(SemanticHighlighter.java:227) at org.netbeans.modules.java.editor.semantic.SemanticHighlighter.run(SemanticHighlighter.java:176) at org.netbeans.modules.java.editor.semantic.SemanticHighlighter.run(SemanticHighlighter.java:130) at org.netbeans.api.java.source.JavaSource$CompilationJob.run(JavaSource.java:1661) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [catch] at java.lang.Thread.run(Thread.java:619) Not nice but it is a corner case IMO. The javadoc tool seems to resolve ' * @author' as a block tag which is wrong. For other than first line it works properly. *** Issue 132927 has been marked as a duplicate of this issue. *** *** Issue 134122 has been marked as a duplicate of this issue. *** Jirko, this is a perfect candidate for release61 patch IMO. still reproducible ie with following class-level javadoc in full ide build: /** * some text * ** @author lukas */ public class Some {} other repro-case - open org.openide.WizardDescTest in the editor (Dialogs API module) which contains: /** Testing behaviour of WizardDescription in order to fix bug 35266 ** @see issue 35266 */ INFO: Product Version: NetBeans IDE Dev (Build 20080503171657) Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22 System: Linux version 2.6.24-17-generic running on i386; UTF-8; en_US (nb) Created attachment 61024 [details]
ide log
It is slightly different problem. It seems that javadoc tool parser accepts several '*' as a javadoc line prefix. Fixed as http://hg.netbeans.org/main/rev/02d5b7adb434 Integrated into 'main-golden', available in NB_Trunk_Production #206 build Changeset: http://hg.netbeans.org/main/rev/02d5b7adb434 User: Jan Pokorsky <jpokorsky@netbeans.org> Log: #131826: whatever javadoc line may be prefixed with several * v. The fix has been ported into the release61_fixes branch: http://hg.netbeans.org/release61_fixes/rev/22963806b379 Verified Just for the record: duplicates from the automatic reporter with build number newer than 080421 belongs to issue 139147. |