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.
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).
Note that no stable modules currently rely on this mechanism, so it is not high priority.
Also see issue #36778 for a possible solution in Ant 1.6.
Fixed in ant_nblib_38306.
*** Issue 38448 has been marked as a duplicate of this issue. ***
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.
Fixed as part of issue #38306.
closed