Bug 81497

Summary: [format] Wrong feeding after array-initialization
Product: [Eclipse Project] JDT Reporter: Ulrich Voigt <ulrich.voigt>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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