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.

Bug 33344 - Adding javadoc tag to empty method text causes null comment
Summary: Adding javadoc tag to empty method text causes null comment
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: Sun SunOS
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-01 21:56 UTC by Chris Webster
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
example file demonstrating this problem (485 bytes, text/plain)
2003-05-01 21:58 UTC, Chris Webster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Webster 2003-05-01 21:56:46 UTC
Execute the following test program using internal
execution and you will notice that the following
for the comment. The comment should only consist
of the @hello tag and not the null. This problem
seems to be caused by a string concatenation will
a null object.

    /** null
     * @hello
     */    
    public void test(){}
Comment 1 Chris Webster 2003-05-01 21:58:33 UTC
Created attachment 10208 [details]
example file demonstrating this problem
Comment 2 Milan Kubec 2003-05-02 08:56:49 UTC
Please make sure to specify version against you reported this bug. If
it's project build add also keyword PROJECTS. Thanks.
Comment 3 Milan Kubec 2003-05-02 11:11:11 UTC
Can be reproduced on Nevada build, but also in NetBeans 3.4.1. Happens
only if you call me.getJavaDoc().changeTags() when no javadoc exists. 

The problem can be solved simply by calling:
me.getJavaDoc().setText("");
before me.getJavaDoc().changeTags();

User cannot reproduce using UI. Lowering priority to P3.
Comment 4 Tomas Zezula 2003-07-16 12:44:45 UTC
Fixed in the prj40_prototype branch.
Comment 5 Jan Becicka 2003-11-25 14:02:56 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as VERIFIED --->
Comment 6 Jan Becicka 2003-11-25 14:11:58 UTC
---> CLOSED
Comment 7 Quality Engineering 2007-09-20 12:28:08 UTC
Reorganization of java component