Bug 23134 - Odd behavior from code formatter
Summary: Odd behavior from code formatter
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 25976 29716 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-03 19:53 EDT by Till Weiss CLA
Modified: 2003-02-07 05:46 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Till Weiss CLA 2002-09-03 19:53:22 EDT
when using the code formatter to programmaticly format the following string an 
extra { is add before the string for some reason.

public Ns1(){}
becomes
}public Ns1(){}
Comment 1 Till Weiss CLA 2002-09-03 20:23:58 EDT
I have figured this out in the mean time it seems to be related to reuseing the 
same ICodeFormatter object for muiltply format calls. I assume this is not 
supposed to happend if this is the case maybe an exception should be throw the 
2nd time??
Comment 2 Olivier Thomann CLA 2002-11-14 13:20:26 EST
*** Bug 25976 has been marked as a duplicate of this bug. ***
Comment 3 Olivier Thomann CLA 2003-01-15 13:23:08 EST
We need to clear 2.1 bug reports that won't be addressed before 2.1. The new 
implementation is still in the works. Therefore we cannot include it for 2.1. 
Not enough testing and we need to polish the preferences. This will be address 
for 2.2 as stated in the JDT/Core plan.
Comment 4 Olivier Thomann CLA 2003-01-21 10:28:27 EST
This could be simply fix by resetting properly the formatter for each formatting.
Comment 5 Olivier Thomann CLA 2003-01-21 10:29:04 EST
*** Bug 29716 has been marked as a duplicate of this bug. ***
Comment 6 Olivier Thomann CLA 2003-01-21 15:20:19 EST
Fixed and released in 2.1 stream.
Regression tests added.
Comment 7 David Audel CLA 2003-02-07 05:46:00 EST
Verified.