Bug 94067 - Auto format behaviour is inconsistently in class comment blocks
Summary: Auto format behaviour is inconsistently in class comment blocks
Status: RESOLVED DUPLICATE of bug 94024
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: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-08 16:14 EDT by Tim Williams CLA
Modified: 2005-05-10 13:11 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-08 16:14:33 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:11:45 EDT

*** This bug has been marked as a duplicate of 94024 ***