Summary: | [compiler] compiler allows assignment to final field in constructor other than through 'this' | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Christopher Unkel <cunkel> | ||||||||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||||||
Severity: | normal | ||||||||||||
Priority: | P3 | CC: | flavio.etrusco, montypythonite | ||||||||||
Version: | 3.2 | ||||||||||||
Target Milestone: | 3.3 M7 | ||||||||||||
Hardware: | PC | ||||||||||||
OS: | Windows XP | ||||||||||||
Whiteboard: | |||||||||||||
Attachments: |
|
Description
Christopher Unkel
2006-07-25 19:30:25 EDT
Created attachment 46788 [details]
final field initialization test cases
Reproduced using I20070320-0010. Created attachment 62485 [details]
Proposed patch
Raising severity. This is quite bad in the compiler to miss this scenario. Surprisingly it never got discovered until now... broken since day 1. Created attachment 62503 [details]
Better patch
Released for 3.3M7 Created attachment 62551 [details]
Proposed patch for 3.2.2
Released in 3.2 maintenance stream. Verified for 3.3M7 with I20070427-0010 *** Bug 190391 has been marked as a duplicate of this bug. *** |