Hi Laird,
Weld version? Environment? Deployment structure?
I think the Producers class should not be discovered. So it looks like a
bug or misconfiguration.
Martin
Dne 19.3.2017 v 22:18 Laird Nelson napsal(a):
On Sun, Mar 19, 2017 at 1:59 PM Laird Nelson <ljnelson(a)gmail.com
<mailto:ljnelson@gmail.com>> wrote:
I have a portable extension not annotated in any way. It has a
nested class inside it named Producers. That class is annotated
with @Singleton (and nothing else). It has producer methods in it.
They are being discovered while a bean discovery mode of "annotated"
is in effect. Is this correct?
(This also happens if I remove the @Singleton annotation. That is, if I
just have a private static (nested) class named Producers defining
@Produces-annotated methods in my portable extension class.)
Best,
Laird
_______________________________________________
cdi-dev mailing list
cdi-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/cdi-dev
Note that for all code provided on this list, the provider licenses the code under the
Apache License, Version 2 (
http://www.apache.org/licenses/LICENSE-2.0.html). For all other
ideas provided on this list, the provider waives all patent and other intellectual
property rights inherent in such information.
--
Martin Kouba
Senior Software Engineer
Red Hat, Czech Republic