Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325252 - [compiler] bogus warning "Unnecessary @SuppressWarnings("unused")" in Order System Example
Summary: [compiler] bogus warning "Unnecessary @SuppressWarnings("unused")" in Order S...
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTJ (show other bugs)
Version: 0.7   Edit
Hardware: Other Linux
: P3 minor (vote)
Target Milestone: 0.8 M3   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-14 09:54 EDT by Stephan Herrmann CLA
Modified: 2010-11-10 18:43 EST (History)
0 users

See Also:


Attachments
fix (2.22 KB, patch)
2010-11-06 12:06 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-09-14 09:54:59 EDT
The OrderSystem example shows the mentioned bogus warning in StockOrder.
This might be caused by copy-inherited fields which have this annotation.
Comment 1 Stephan Herrmann CLA 2010-11-06 12:06:47 EDT
Created attachment 182555 [details]
fix

Fixed by skipping copy-inherited members in CUD.finalizeProblems().
Annotations are inherited, but usage of members is not newly analyzed.
CopyInheritance.copyField/Method() explicitly set |= AccLocallyUsed.
Comment 2 Stephan Herrmann CLA 2010-11-06 12:07:53 EDT
Patch committed as r992.
Comment 3 Stephan Herrmann CLA 2010-11-10 18:43:54 EST
Verified for 0.8 M3 using build 201011100445