This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 99569 - Libraries are not propagated properly through projects
Summary: Libraries are not propagated properly through projects
Status: VERIFIED DUPLICATE of bug 47507
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-30 16:48 UTC by Kirill Sorokin
Modified: 2008-03-13 16:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Sorokin 2007-03-30 16:48:59 UTC
I have three projects: A, B and C. A has B as one of its libraries; and B has C
as its library. The problem is that the IDE will not allow me to use classes
from C in project A showing errors, while it can be compiled successfully.

--
NetBeans IDE Dev (Build 200703251800)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251
Comment 1 Jesse Glick 2007-04-03 03:00:07 UTC
You need to add C to A's runtime classpath, at a minimum, or to its compile-time
classpath if it additionally needs to compile against classes in C directly. NB
does not currently do this for you automatically - see issue #47507.

(Project A needs to compile against C if it explicitly refers to any classes in
C by name; or if its bytecode would, e.g. by calling a method defined in C on a
C-class-valued return value of some method in B. Unfortunately the Java language
spec does not precisely define the corner cases here and the precise behavior
may be compiler-specific.)

I don't know why the error stripe in NB would display different results than
Ant, but if you can reproduce with a minimal test case, please reopen as a P3
with details.

*** This issue has been marked as a duplicate of 47507 ***
Comment 2 Kirill Sorokin 2008-03-13 16:36:42 UTC
Verified duplicate.