Bug 94024 - Auto format behaviour is inconsistently in class comment blocks
Summary: Auto format behaviour is inconsistently in class comment blocks
Status: VERIFIED DUPLICATE of bug 49412
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0.2   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.3 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 93876 93921 94038 94067 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-06 22:50 EDT by Tim Williams CLA
Modified: 2007-03-20 11:03 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Williams CLA 2005-05-06 22:50:38 EDT
Using the Java editor I have the following comment on my class as the first
lines in the .java file:

/*
 *****************************************************************************
 *
 * COPYRIGHT 2005. ALL RIGHTS RESERVED.
 *
 * This software is only to be used for the purpose for which it has been
 * provided. No part of it is to be reproduced, disassembled, transmitted,
 * stored in a retrieval system nor translated in any human or computer
 * language in any way or for any other purposes whatsoever without the
 * prior written consent of.
 *****************************************************************************
 */

When the source code formatter is used in some classes it will leave the comment
untouched, in others will put spaces and reflow the text, resulting in the
following:

/*
 * ****************************************************************************
 * 
 * COPYRIGHT 2005. ALL RIGHTS RESERVED.
 * 
 * This software is only to be used for the purpose for which it has been
 * provided. No part of it is to be reproduced, disassembled, transmitted,
 * stored in a retrieval system nor translated in any human or computer language
 * in any way or for any other purposes whatsoever without the prior written
 * consent of.
 * ****************************************************************************
 */

I can't find the differentiator between classes that dictates when this happens.
 For any given class the behaviour is consistent, either it always reformats or
in never does.

My Javadoc formatter options:

    [x] Enable comment formatting
    [ ] Format header comment
    [x] Format HTML tags
    [x] Format Java code snippets

    [ ] Clear blank lines in comments
    [x] Blank line before Javadoc tags
    [x] Indent Javadoc tags
       [x] Indent description after @param
    [x] New line after @param tags

Since I can readily reproduce this if someone can point me in the general area
of the code responsible for this I am quite willing to investigate further.

Regards,

Tim
Comment 1 Kent Johnson CLA 2005-05-10 13:10:54 EDT
*** Bug 94038 has been marked as a duplicate of this bug. ***
Comment 2 Kent Johnson CLA 2005-05-10 13:11:45 EDT
*** Bug 94067 has been marked as a duplicate of this bug. ***
Comment 3 Kent Johnson CLA 2005-05-10 13:12:22 EDT
*** Bug 93876 has been marked as a duplicate of this bug. ***
Comment 4 Kent Johnson CLA 2005-05-10 13:12:46 EDT
*** Bug 93921 has been marked as a duplicate of this bug. ***
Comment 5 Olivier Thomann CLA 2007-02-13 15:18:02 EST
Can the fix for bug 49412 be a solution for this one?
It looks like you don't want block comment to be formatted at all.
You can now disable the formatting of block comment and continue to format javadoc comment.
Closing as dup of bug 49412.
Reopen if this doesn't solve your issue.

*** This bug has been marked as a duplicate of bug 49412 ***
Comment 6 Frederic Fusier CLA 2007-03-19 06:10:39 EDT
Set target as 3.3 M6 to verify this bug...
Please put back it to 3.3 M5 after the verification, thanks
Comment 7 Olivier Thomann CLA 2007-03-20 11:03:43 EDT
Set target to 3.3M5