Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316658 - [reconciler] implicitly inherited field reports "illegal modifier"
Summary: [reconciler] implicitly inherited field reports "illegal modifier"
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTDT (show other bugs)
Version: 0.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.7   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-11 17:54 EDT by Stephan Herrmann CLA
Modified: 2010-07-02 12:55 EDT (History)
0 users

See Also:


Attachments
Test & fix (4.25 KB, patch)
2010-06-13 06:10 EDT, Stephan Herrmann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.