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 115838 - Javadoc suggestion (auto-complete) does not format the code well
Summary: Javadoc suggestion (auto-complete) does not format the code well
Status: RESOLVED DUPLICATE of bug 105623
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-18 13:26 UTC by crosati
Modified: 2007-09-19 16:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Image showing code before applying suggetion. (19.74 KB, image/png)
2007-09-18 13:27 UTC, crosati
Details
Image showing code after applying suggestion. (20.92 KB, image/png)
2007-09-18 13:28 UTC, crosati
Details
Customized formatting settings (3.04 KB, text/plain)
2007-09-19 12:52 UTC, crosati
Details
Customized formatting settings (3.04 KB, text/plain)
2007-09-19 12:53 UTC, crosati
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crosati 2007-09-18 13:26:20 UTC
I'm writing javadoc for a method.
Suggestions tell me to add the method parameter's tag.
After the tag was added (ALT-ENTER on mac) the resulting code is ill-formatted.
See the attached imageges.
Comment 1 crosati 2007-09-18 13:27:57 UTC
Created attachment 48983 [details]
Image showing code before applying suggetion.
Comment 2 crosati 2007-09-18 13:28:44 UTC
Created attachment 48984 [details]
Image showing code after applying suggestion.
Comment 3 crosati 2007-09-18 13:30:01 UTC
As you can see the javadoc closing line is no more aligned with the rest of the comment.
Comment 4 Jan Pokorsky 2007-09-18 14:58:35 UTC
Please provide the build number. 
Comment 5 crosati 2007-09-19 07:39:21 UTC
From the About dialog:

Product Version: NetBeans IDE 6.0 Beta 1 (Build 200709141330)
Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87
System: Mac OS X version 10.4.10 running on i386; MacRoman; en_US (nb)
Userdir: /Users/crosati/.netbeans/6.0beta1
Comment 6 crosati 2007-09-19 12:51:35 UTC
As suggested by Jirka I attach the customized format settins default.properties file.
Comment 7 crosati 2007-09-19 12:52:41 UTC
Created attachment 49056 [details]
Customized formatting settings
Comment 8 crosati 2007-09-19 12:53:38 UTC
Created attachment 49057 [details]
Customized formatting settings
Comment 9 Jan Pokorsky 2007-09-19 14:04:18 UTC
Have you modified Preferences/Editor/Indentation settings? It is most likely the reason. I cannot recognize from
attached images if you use tabs instead of spaces to indent lines.
Comment 10 crosati 2007-09-19 14:09:56 UTC
Yes, I've modified the settings.
Yes, I've decided tu use TABs instead of spaces.
Comment 11 Jan Pokorsky 2007-09-19 16:52:26 UTC
That's it. The issue is already fixed for NB 6.0 beta 2. You have to use a dev build after Sep 13 2007. See
http://bits.netbeans.org/download/6.0/nightly/latest/

*** This issue has been marked as a duplicate of 105623 ***