Bug 81497 - [format] Wrong feeding after array-initialization
Summary: [format] Wrong feeding after array-initialization
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-17 04:46 EST by Ulrich Voigt CLA
Modified: 2005-03-30 19:18 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Voigt CLA 2004-12-17 04:46:13 EST
The following code fragment lacks one feed in line 6 after formatting:

public String[] getStrings() 
{
   if (b) 
   {
      return new String[] {};
}  // << wrong feed
return x;
}
Comment 1 Olivier Thomann CLA 2005-03-28 18:29:23 EST
Fixed and released in HEAD.
Regression tests added in FormatterRegressionTests.test560/561.
Comment 2 Olivier Thomann CLA 2005-03-28 18:32:54 EST
I could not reproduce with latest. So this should not be considered as fixed.
Reopen to close as WORKSFORME.
Comment 3 Olivier Thomann CLA 2005-03-28 18:33:26 EST
Closing as WORKSFORME.
I added regressions tests as mentionned in comment 1.
Comment 4 Olivier Thomann CLA 2005-03-29 10:06:17 EST
Reopen to close as FIXED.
By reverting change for bug 89299 I was abble to reproduce it.
Comment 5 Olivier Thomann CLA 2005-03-29 10:11:26 EST
Fixed and released in HEAD.
Same regression tests.
Comment 6 Olivier Thomann CLA 2005-03-30 19:18:06 EST
Verified in 20050330-0500