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

Bug 316658

Summary: [reconciler] implicitly inherited field reports "illegal modifier"
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTDTAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7   
Target Milestone: 0.7   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Test & fix none

Description Stephan Herrmann CLA 2010-06-11 17:54:37 EDT
In a situation spawned from bug 315322, if the implicit sub-role
is materialized (no phantom role), the reconciler (not the builder)
reports:
"Illegal modifier for the field f; only public ... are permitted"

It is not clear which illegal modifier is actually detected.
Comment 1 Stephan Herrmann CLA 2010-06-13 06:10:57 EDT
Created attachment 171799 [details]
Test & fix

Could reproduce:

We were mixing AccBlankFinal and AccReadonly (future).
Fixed by avoiding to set AccBlankFinal on field declarations,
but only field bindings.

To make sure the illegal use of "readonly" is still flagged,
test8132_illegalModifier1() was added, too.
Comment 2 Stephan Herrmann CLA 2010-06-13 06:14:34 EDT
Patch committed as r479 + r480.
Comment 3 Stephan Herrmann CLA 2010-07-02 12:55:43 EDT
Verified using build 201007011455.