| OK, redid my decorator to not extend anything and to ensure that it is decorating an interface. Same result. The problem looks like it's related to the bean that is being decorated. It declares a constructor like this:
@Inject |
private FoobarBean(final Foo foo, final Bar bar) { |
super(); |
this.foo = foo; |
this.bar = bar; |
}
|
Weld injects this just fine normally. When I add a decorator into the mix, the fact that this constructor is declared private results in the NullPointerException. I'll check the specification to see if private constructors annotated with @Inject are permitted (can't remember). |