Bug 172324

Summary: Formatter formats block comments when comment formatting is disabled
Product: [Eclipse Project] JDT Reporter: John Ferguson <john.ferg>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: 3.3 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.