Bug 235882 - [compiler] constructor-scoped inner classes unable to recognize final member variable initialization
Summary: [compiler] constructor-scoped inner classes unable to recognize final member ...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4.1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-05 13:27 EDT by Hollis Waite CLA
Modified: 2008-08-28 12:41 EDT (History)
1 user (show)

See Also:


Attachments
Proposed patch (2.49 KB, patch)
2008-06-09 13:02 EDT, Philipe Mulet CLA
no flags Details | Diff
Patch for 3.3.x (3.48 KB, patch)
2008-06-10 05:23 EDT, Philipe Mulet CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hollis Waite CLA 2008-06-05 13:27:00 EDT
Build ID: M20080221-1800

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

More information:
"The blank field <var> may not have been initialized".  Compiles fine in JDK 1.6.06
Comment 1 Philipe Mulet CLA 2008-06-09 11:33:54 EDT
This is a regression introduced between 3.3.1 and 3.3.2.
Comment 2 Philipe Mulet CLA 2008-06-09 12:11:36 EDT
Might be a consequence of fix for bug 203061
Comment 3 Philipe Mulet CLA 2008-06-09 13:02:57 EDT
Created attachment 104191 [details]
Proposed patch
Comment 4 Philipe Mulet CLA 2008-06-09 13:03:36 EDT
Added InitializationTest#test194
Comment 5 Philipe Mulet CLA 2008-06-09 13:04:03 EDT
should also backport to 3.3.x maintenance branch
Comment 6 Philipe Mulet CLA 2008-06-10 05:23:54 EDT
Created attachment 104293 [details]
Patch for 3.3.x
Comment 7 Philipe Mulet CLA 2008-06-10 05:24:20 EDT
Released patch in 3.3.x maintenance branch
Comment 8 Philipe Mulet CLA 2008-06-24 07:14:49 EDT
Released for 3.5M1
Comment 9 Philipe Mulet CLA 2008-06-25 11:42:54 EDT
Released to 3.4 maintenance branch
Fixed
Comment 10 Philipe Mulet CLA 2008-06-25 11:49:15 EDT
Released for 3.4.1
Comment 11 Olivier Thomann CLA 2008-08-06 14:27:52 EDT
Verified for 3.5M1 using I20080805-1307
Comment 12 Frederic Fusier CLA 2008-08-28 12:41:02 EDT
Verified for 3.4.1 using build M20080827-2000.