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 152353 - ServiceProviderProcessor from classpath preferred to developed version
Summary: ServiceProviderProcessor from classpath preferred to developed version
Status: RESOLVED DUPLICATE of bug 152620
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 147393
  Show dependency tree
 
Reported: 2008-11-04 19:44 UTC by Jesse Glick
Modified: 2009-02-19 20:18 UTC (History)
1 user (show)

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 2008-11-04 19:44:55 UTC
It seems that when running Ant on a module project from inside a 7.0+ IDE then the processor for @ServiceProvider is
taken from the IDE's org-openide-util.jar rather than from the copy you are developing in a module project. This makes
it more difficult to test changes to ServiceProviderProcessor.

Presumably the same would apply to any other provider located in openide.util, openide.modules, or o.n.bootstrap. Might
be best solvable by hacking the Ant module to specifically exclude NB platform JARs from the classpath it reports to
Apache Ant.

Calling setIncludeantruntime(false) and setIncludejavaruntime(false) in CustomJavac does not help.
Comment 1 Jesse Glick 2008-11-24 19:36:59 UTC
Seems to be fixed by fix of issue #152620 (the "best solvable" part).

*** This issue has been marked as a duplicate of 152620 ***