Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315322

Summary: [compiler] final field with initializer breaks implicit inheritance
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTJAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7   
Target Milestone: 0.7 M4   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
fix none

Description Stephan Herrmann CLA 2010-06-01 18:11:13 EDT
When a role has a final field with an initializer an implicit sub-role
will be flagged as missing an initialization for the blank final field.

Given that the initialization is actually inherited by copying the
constructor(s) it should just be an issue of analysis within the compiler
to avoid this error message.
Comment 1 Stephan Herrmann CLA 2010-06-01 18:42:59 EDT
Created attachment 170722 [details]
fix

Fixed by not re-checking copied field.

Witness is test0c14_implicitlyInheritedInitializedField1()
Comment 2 Stephan Herrmann CLA 2010-06-01 18:45:05 EDT
Patch has been released as r407.
Comment 3 Stephan Herrmann CLA 2010-06-11 17:50:29 EDT
Verified for M4 using build 201006111044.