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

Summary: ServiceProviderProcessor from classpath preferred to developed version
Product: apisupport Reporter: Jesse Glick <jglick>
Component: HarnessAssignee: Jesse Glick <jglick>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: jtulach
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 147393    

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 ***