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 73666 - Cannot add simple run dep on non-API module
Summary: Cannot add simple run dep on non-API module
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-16 15:59 UTC by Jesse Glick
Modified: 2006-03-21 08:34 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 Jesse Glick 2006-03-16 15:59:12 UTC
If module B has no public packages, and you add a dep on B to module A from e.g.
Libraries node, then try to build A, it will fail:

The module ... has no public packages and so cannot be compiled against

The reason is that the "Include API Packages in Classpath" checkbox is checked
and you cannot uncheck it in the Edit Module Dep dialog: it is disabled!

Worse, even if you select Implementation Dependency temporarily, the checkbox is
still disabled, which is definitely wrong.

Workaround is to edit project.xml and remove <build-prerequisite/> and
<compile-dependency/>.
Comment 1 Martin Krauskopf 2006-03-16 16:08:02 UTC
Presumably should be fixed for 5.0u1. I'll try to find a time to fix it ASAP,
hopefully today or tomorrow.
Comment 2 Martin Krauskopf 2006-03-18 15:55:04 UTC
Fixed. Would like to backport ASAP. Behavior review appreciated.

test/unit/ui/customizer/ModuleDependencyTest.java; 1.7 -> 1.8;
ui/customizer/EditDependencyPanel.java; 1.18 -> 1.19;
ui/customizer/ModuleDependency.java; 1.22 -> 1.23;

(ummm, somehow forgot to mark this STARTED, sorry)
Comment 3 Martin Krauskopf 2006-03-19 21:50:40 UTC
Backported. Please Tomasi or/and Zajo help with testing this. Thanks.

test/unit/ui/customizer/ModuleDependencyTest.java; 1.3.6.3 -> 1.3.6.4;
ui/customizer/EditDependencyPanel.java; 1.17.2.1 -> 1.17.2.2;
ui/customizer/ModuleDependency.java; 1.19.2.2 -> 1.19.2.3;
Comment 4 pzajac 2006-03-20 13:25:01 UTC
verified in 50u1 branch
Comment 5 Tomas Danek 2006-03-21 08:34:16 UTC
..and also in trunk..