Bug 172324 - Formatter formats block comments when comment formatting is disabled
Summary: Formatter formats block comments when comment formatting is disabled
Status: VERIFIED DUPLICATE of bug 49314
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M7   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-31 10:19 EST by John Ferguson CLA
Modified: 2007-04-27 07:35 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 John Ferguson CLA 2007-01-31 10:19:01 EST
Build ID: I20061214-1445

Steps To Reproduce:
1. Add the following to any Java file:
/*
        My comment.
        Blah blah blah.
*/
2. Highlight this comment and press Ctrl + F. Notice how the indentation changes even when "Enable comment formatting" is unchecked.


More information:
Aside from fixing this bug, I suggest also allowing comment formatting to remain switched on, but to have an option to NOT unindent the text within a block comment.
Comment 1 Dani Megert CLA 2007-04-23 14:41:58 EDT
What a coincidence ;-)
Comment 2 Olivier Thomann CLA 2007-04-24 11:44:12 EDT
Closing as dup of bug 49314.
Added regression test in org.eclipse.jdt.core.tests.formatter.FormatterRegressionTests.test666()

*** This bug has been marked as a duplicate of bug 49314 ***
Comment 3 Maxime Daniel CLA 2007-04-27 07:35:37 EDT
Verified for 3.3 M7 using build I20070427-0010.