Bug 76660 - Code Formatter comment handling
Summary: Code Formatter comment handling
Status: CLOSED DUPLICATE of bug 47620
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-20 10:51 EDT by Jason Sholl CLA
Modified: 2005-03-01 15:58 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Sholl CLA 2004-10-20 10:51:02 EDT
The two different flavors of java comments should be treated differently by 
the code formatter.  The way the /* */ or /** */ comments are treated is 
great!  The problem is with the // comments.  The // comments should be 
treated as code so they are wrapped at the same length at which code is 
wrapped rather than at the length the /* comments are wrapppd.  The reason is 
often there many be a lengthly comment on a line that gets formatted really 
funny; e.g.

if(someCondition) { //This check is needed because of bug 23424 where the blah 
blah blah blah blah

may be wrapped something like this:
if(someCondition) { // This 
                    // check
                    // is
                    // needed
                    // because
                    // of
                    // bug
                    // 23424
                    // where
                    // the
                    // blah
                    // blah
                    // blah
                    // blah
                    // blah
Comment 1 Dani Megert CLA 2004-10-20 11:53:54 EDT

*** This bug has been marked as a duplicate of 47620 ***
Comment 2 Chuck Bridgham CLA 2005-03-01 15:58:22 EST
Rely on 47620 for verification.