Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325171 - incorrect "require of X by package Y is unnecessary" remark
Summary: incorrect "require of X by package Y is unnecessary" remark
Status: ASSIGNED
Alias: None
Product: RTSC
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dave Russo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-13 17:33 EDT by Chris Ring CLA
Modified: 2011-11-24 12:58 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Ring CLA 2010-09-13 17:33:30 EDT
When switching from XDC 3.20.01.51 to 3.20.03.63, the following type of remarks began to be generated during 'xdc release' of some packages:

remark: require of 'ti.xdais.dm.examples.universal_copy' by package 'ti.sdo.ce.examples.codecs.universal_copy' is unnecessary

It's unclear what's causing this remark to be generated, but the 'require' statement is, in fact, necessary in my use case... it's how I get the 'required' package to build when building the 'requiring' package with "xdc -PD".
Comment 1 Dave Russo CLA 2010-09-13 18:41:30 EDT
for "requires to build" verses "requires to use", you should be using 
    requires internal ti.xdais.dm.examples.universal_copy;
rather than simply 
    requires ti.xdais.dm.examples.universal_copy;
Comment 2 Chris Ring CLA 2010-09-13 19:59:15 EDT
(In reply to comment #1)
> for "requires to build" verses "requires to use", you should be using 
>     requires internal ti.xdais.dm.examples.universal_copy;
> rather than simply 
>     requires ti.xdais.dm.examples.universal_copy;

I think we require to build _and_ to use.

The app cfg script uses ti.sdo.ce.examples.codecs.universal_copy pkg... which 'requires ti.xdais.dm.examples.universal_copy' [without internal].

This is how the ti.xdais.dm.examples.universal_copy pkg is brought into the model at config time, and is given the energy to provide its lib via getLibs().