Community
Participate
Working Groups
I20081027-1800 The test case from bug 228652 comment 0 still fails because spaces are removed before the region that is being formatted (the region being a Javadoc in this test case).
Created attachment 154671 [details] JUnit test for this issue Note that this test currently passes. That means it verifies that the problem still occurs and of course, it needs to be changed accordingly (see the comment line) when this issue will be fixed...
(In reply to comment #1) > Created an attachment (id=154671) [details] > JUnit test for this issue > > Note that this test currently passes. That means it verifies that the problem > still occurs and of course, it needs to be changed accordingly (see the comment > line) when this issue will be fixed... Released in HEAD...
Created attachment 176666 [details] Proposed patch This patch makes the formatter not including the indentation spaces before the selection for javadoc comments and also add a field to valid the edits (OptimizedReplaceEdit) to remove them more easily when they are outside the given regions.
All JDT/Core, JDT/UI and JDT/Text tests passes with this patch as well as all massive regression tests. Released for 3.7M2 in HEAD stream.
.
(In reply to comment #4) > All JDT/Core, JDT/UI and JDT/Text tests passes with this patch as well as all > massive regression tests. > > Released for 3.7M2 in HEAD stream. There were failures for 3 of the added tests on Linux tests box, hence I have reverted the patch from HEAD until I discover the reason of these failures...
Created attachment 178159 [details] New proposed patch This patch passes all JDT tests on Windows and all JDT/Core tests on Linux. It also has no performance impact on the formatter and no observed regression on massive tests...
(In reply to comment #7) > Created an attachment (id=178159) [details] > New proposed patch > > This patch passes all JDT tests on Windows and all JDT/Core tests on Linux. It > also has no performance impact on the formatter and no observed regression on > massive tests... So, released (again) for 3.7M2 in HEAD stream.
Verified for 3.7M2 using build I20100909-1700