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.
Could try to be more clever and inspect Export-Package, Private-Package, and Embed-Dependency config to see if the bundle is really including classes from other bundles or not.
*** Bug 209365 has been marked as a duplicate of this bug. ***
http://www.aqute.biz/Bnd/Format gives detailed info on what values can be in the Export-Package, Private-Package instructions http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html
http://hg.netbeans.org/core-main/rev/392d08934049 I didn't really understand Embed-Dependency but I assume it doesn't hurt us as the dependency ends up as jar inside jar. A bit simplistic resolution of Export-Package and Private-Package instructions, no directives taken into account. When sources are not preferred, we show a warning problem describing the issue.
Alternate API would be for FCB (or FCB2) to return ProblemReport|null, so that the impl does not need to explicitly manage attaching and detaching the report - this would be handled by infrastructure. That of course assumes that you want to enforce that every case of !preferSources produces a warning. Or you could return a Pair<Boolean,ProblemReport|null> which allows the impl to decide whether or not to warn about the condition.
Integrated into 'main-golden', will be available in build *201207280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/392d08934049 User: Milos Kleint <mkleint@netbeans.org> Log: #209365, #208410 more detailed decision logic to decide if a bundle project is bundling dependencies in final jar in local repository or not. based on content of Export-Package and Private-Package instructions in maven bundle plugin. also have a problem item shown when sources are not preferred.
Created attachment 122624 [details] More complete Matcher implementation Matcher implementation in changeset http://hg.netbeans.org/main-golden/rev/392d08934049 was too simple, and didn't correctly match some cases. Developed an alternate, more complete on after talking with mkleint. This is an small standalone project used to develop the code, and include some timing test to insure viability. Integration with main tree to generate a patch is in progress.
Created attachment 122630 [details] Patch version of Matcher More complete Matcher implementation - patch version. Patch over checked out sources from hg.netbeans.org/main of previous attachment, without the timing test case.
reopening. can only apply once the contributor agreement is processed.
applied patch by folarte: https://hg.netbeans.org/core-main/rev/b8875d941279
Integrated into 'main-golden', will be available in build *201208150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b8875d941279 User: Francisco Olarte <folarte@netbeans.org> Log: #208410 improved handling of various export+private package entries
http://hg.netbeans.org/releases/rev/09f2b7147315 http://hg.netbeans.org/releases/rev/1df63650a047
Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/09f2b7147315 User: Milos Kleint <mkleint@netbeans.org> Log: #209365, #208410 merge into release72 branch