Bug 275246

Summary: [compiler] constructor-scoped inner class nonstatic initializers ignore variable initialization
Product: [Eclipse Project] JDT Reporter: Hollis Waite <hwaite>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 3.4.2   
Target Milestone: 3.5 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Hollis Waite CLA 2009-05-06 22:16:57 EDT
Build ID: M20090211-1700

Steps To Reproduce:
class Test {
  final Object o;
  Test() {
    o = "";
    new Object() {{o.toString();}};
  }
}

More information:
"The blank final field <var> may not have been initialized".  Compiles fine in JDK 1.6.0_13.
Comment 1 Olivier Thomann CLA 2009-05-07 09:18:37 EDT
This is also fixed with version v_956 of JDT/Core.
I'll try to find the corresponding bug that was fixed.
Comment 2 Olivier Thomann CLA 2009-05-07 10:01:38 EDT
Closing as a duplicate of bug 257716.
Added regression test org.eclipse.jdt.tests.compiler.regression.InitializationTest#test204

*** This bug has been marked as a duplicate of bug 257716 ***
Comment 3 Frederic Fusier CLA 2009-05-14 12:17:51 EDT
Verified for 3.5M6 using build I20090313-0100