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

Bug 325252

Summary: [compiler] bogus warning "Unnecessary @SuppressWarnings("unused")" in Order System Example
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTJAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 0.7   
Target Milestone: 0.8 M3   
Hardware: Other   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
fix none

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