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 7700 - [indentation]Editor adds improper asterisk behind inserted comment.
Summary: [indentation]Editor adds improper asterisk behind inserted comment.
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P4 normal (vote)
Assignee: issues@editor
URL:
Keywords:
: 6568 (view as bug list)
Depends on:
Blocks:
 
Reported: 2000-09-18 16:49 UTC by Petr Slegr
Modified: 2003-07-01 13:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Slegr 2000-09-18 16:49:12 UTC
Let have method with empty javadoc comment like this:

   /**
    *
    */
   void method (int num) {
   ....
   }

Via Javadoc property editor or Auto Comment tool insert comment for
the num parameter only i.e. @param tag only.

Description for this tag must be at least on two lines.

After that you got something similar:

/**
 * @param num first_line_of_comment
 * second_line
 */ * void method (int num) {
......

It is uncompilable.
Comment 1 Jan Lahoda 2001-01-24 15:30:59 UTC
Only changed version to Development.
Comment 2 Jan Chalupa 2001-03-12 10:35:41 UTC
Version: 'Dev' -> 3.2
Comment 3 David Konecny 2001-04-04 14:15:50 UTC
After discussion with Svata it looks that the problem is in his module. The 
AutoComment returns most probably comments with CRLF and this is not handled 
correctly in Java module.

If inserted comment has much more than two lines the behaviour is even worse - 
some characters after the JavaDoc comment are simply overwritten.
Comment 4 Svata Dedic 2001-04-04 16:08:43 UTC
*PLEASE* do NOT use system dependent line separators, if you don't have to.
There are numerous places within the IDE that do their own parsing/analysis and
the more or less suppose that lines are separated by \n
Comment 5 Svata Dedic 2001-04-04 18:35:08 UTC
Fixed in 3.2 & dev
Comment 6 David Konecny 2001-04-11 12:07:28 UTC
*** Issue 6568 has been marked as a duplicate of this issue. ***
Comment 7 Jan Chalupa 2001-05-05 23:24:12 UTC
Target milestone -> 3.2
Comment 8 Jan Becicka 2001-06-27 17:38:43 UTC
Bug seems to be fixed. Please verify.
Comment 9 Quality Engineering 2003-07-01 13:36:30 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.