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

Bug 325171

Summary: incorrect "require of X by package Y is unnecessary" remark
Product: [Technology] RTSC Reporter: Chris Ring <cring>
Component: CoreAssignee: Dave Russo <d-russo>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: dfriedland
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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().