This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 269479 - Non navigable association error hidden when fields are never read
Summary: Non navigable association error hidden when fields are never read
Status: CLOSED WORKSFORME
Alias: None
Product: Tigerstripe (Archived)
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.5M0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-20 05:50 EDT by Marc FLAUW CLA
Modified: 2012-03-05 14:27 EST (History)
2 users (show)

See Also:


Attachments
Zip file of the SID Import Tigerstripe project (3.33 MB, application/x-zip-compressed)
2009-03-20 05:50 EDT, Marc FLAUW CLA
no flags Details
preferences to be set (26.16 KB, image/png)
2009-08-24 00:49 EDT, Chris Hartley CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc FLAUW CLA 2009-03-20 05:50:04 EDT
Created attachment 129433 [details]
Zip file of the SID Import Tigerstripe project

Hello,

When importing the SID, the model from RSM have some associations that are not navigable in any direction. 

This should generate an error in Tigerstripe. 

However, often both end are never read locally,so 2 warnings are posted:
The field XX is neverread locally.

when this is the case, Tigerstripe does not detect the fact the association is not navigable and does not generate an error. 

If now, I add @SuppressWarnings("unused") before each field then the error appears. 

2 examples in attachement: 
- ServiceDeviceInterfaceDetails in package Logical_View.Resource_Domain.Resource_ABE.LogicalResource_ABE.Device_Interface_ABE; This one has the suppress warnings
- ResourceSpecificationPerfRole in package Logical_View.Resource_Domain.Resource_Specification_ABE; this one does not have the suppress warnings

Best regards,

Marc
Comment 1 Chris Hartley CLA 2009-08-24 00:47:56 EDT
Marc,

choose the menu option Window / Preferences

Go to Java - Compiler - Errors / Warnings

In unnecessary code, set "Local Variable is never read" to Ignore

(see attached screendump)
Comment 2 Chris Hartley CLA 2009-08-24 00:49:50 EDT
Created attachment 145373 [details]
preferences to be set
Comment 3 Navid Mehregani CLA 2012-03-05 14:27:16 EST
I'm unable to reproduce the issue with the attached project on the latest build of Tigerstripe.  Please reopen if you're still able to reproduce this.  The I48 build will be release on Wednesday (March 7th)