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

Bug 569756

Summary: Revisit field initialization in roles - discriminate final / non-final
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTJAssignee: Stephan Herrmann <stephan.herrmann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 2.8.2   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=527743
https://git.eclipse.org/c/objectteams/org.eclipse.objectteams.git/commit/?id=2629b6df1a73f1b7aa63a0f5f1a922446da662db
https://git.eclipse.org/c/objectteams/org.eclipse.objectteams.git/commit/?id=69f9c9efac2bdae1db5bfc7fc7be0f49a288295c
https://git.eclipse.org/c/objectteams/org.eclipse.objectteams.git/commit/?id=4a0b430a128e4e318cd09baefc50f47af13df049
https://bugs.eclipse.org/bugs/show_bug.cgi?id=528057
Whiteboard: 2020-12
Bug Depends on:    
Bug Blocks: 566463    

Description Stephan Herrmann CLA 2020-12-16 16:58:29 EST
In bug 527743 I was a bit rushed when completely abandoning the concept of _OT$InitFields methods (for initializating role fields with initializers).

This came up when looking at currently broken samples (bug 566463) where adding the required tsuper() call causes a runtime exception.

To reduce the problem, I'm bringing _OT$InitFields back, but now only for non-final fields. For final fields the current restriction (see bug 528057) will remain in place for now.
Comment 1 Stephan Herrmann CLA 2020-12-22 05:05:17 EST
Resolved for 2.8.2 (in time for our 2020-12 build)