When you have something like this:
public class FooDisposal {
|
|
@Produces
|
@Tame
|
static Foo foo() {
|
return new Foo();
|
}
|
|
public void disposeFoo(@Disposes @Tame Foo foo) {
|
System.out.println("------------------------------------- DISPOSED");
|
}
|
}
|
then Weld silently fails with following message in log:
19:26:21,933 ERROR [org.jboss.weld.Bean] (default task-17) WELD-000019: Error destroying an instance org.jboss.cdi.tck.tests.implementation.disposal.method.definition.broken.enterprise.remoteMethod.Foo@17bc197a of Producer Method [Foo] with qualifiers [@Tame @Any] declared as [[BackedAnnotatedMethod] @Produces @Tame static org.jboss.cdi.tck.tests.implementation.disposal.method.definition.broken.enterprise.remoteMethod.FooDisposal.foo()]
|
I guess the underlying problem is NPE coming from https://github.com/weld/core/blob/master/impl/src/main/java/org/jboss/weld/injection/producer/AbstractMemberProducer.java#L132 but that's just a guess.
|