Community
Participate
Working Groups
Class org.hudsonci.inject.internal.plugin.SmoothiePluginStrategy is annotated with @Named("default") and its constructor takes pamaeter ExtensionLocator extensionLocator also annotated with the same name. This causes bean name conflicts in CDI. Please consider rename either one. Weld reported: WELD-001414: Bean name is ambiguous. Name default resolves to beans: [Producer Method [ExtensionLocator] with qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod] @Produces @Named private org.hudsonci.inject.internal.InjectionHelper.getDefaultExtensionLocator()], Managed Bean [class org.hudsonci.inject.internal.plugin.SmoothiePluginStrategy] with qualifiers [@Default @Named @Any]]. Please see server.log for more details.]]
Also note that because SmoothiePluginStrategy is annotated with @Singleton and its constructor with @Inject, it is discovered as a bean in the default 'annotated' bean discovery mode of CDI 1.1.
Gerrit change https://git.eclipse.org/r/40304 was merged to [ee7_support]. Commit: http://git.eclipse.org/c/hudson/org.eclipse.hudson.core.git/commit/?id=fcee0aa3c58255c71bfc0db9c0a8aacf5a387457