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 36702 - Do not load IDE-internal extension tasks from disabled modules
Summary: Do not load IDE-internal extension tasks from disabled modules
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 38448 (view as bug list)
Depends on: 38306
Blocks: 20211
  Show dependency tree
 
Reported: 2003-10-20 21:36 UTC by Jesse Glick
Modified: 2005-07-13 13:24 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 2003-10-20 21:36:49 UTC
Currently ant/nblib/*.jar is searched for any
taskdef JARs, which may be loaded with reference
to enabled modules as well as Ant. A problem
arises in case a module is installed but disabled
- its task(s) and/or type(s) will still be
registered, but cannot actually be used.

Currently such errors are quietly suppressed in
case they result in a load-time
NoClassDefFoundError, which can be expected to be
common but not universal.

It would be cleaner to somehow (optionally?) mark
definition JARs in ant/nblib/*.jar as being owned
by a particular module, so the infrastructure
could quietly skip over them in case that module
were disabled (and log a warning in case that
module were not installed).
Comment 1 Jesse Glick 2003-10-20 21:37:50 UTC
Note that no stable modules currently rely on this mechanism, so it is
not high priority.
Comment 2 Jesse Glick 2003-10-23 01:30:03 UTC
Also see issue #36778 for a possible solution in Ant 1.6.
Comment 3 Jesse Glick 2003-12-26 20:22:40 UTC
Fixed in ant_nblib_38306.
Comment 4 Jesse Glick 2004-01-06 19:38:33 UTC
*** Issue 38448 has been marked as a duplicate of this issue. ***
Comment 5 Jesse Glick 2004-01-06 19:44:59 UTC
Higher priority; see #38448, can cause a real exception with
debuggerjpda/ant installed and debuggerjpda disabled. Short-term
workaround would be to catch LinkageError from these lines in
BridgeImpl and log it quietly.
Comment 6 Jesse Glick 2004-01-07 22:22:04 UTC
Fixed as part of issue #38306.
Comment 7 Marian Mirilovic 2005-07-13 13:24:18 UTC
closed