On Fri, Jan 15, 2010 at 2:05 AM, Gurkan Erdogdu
<[email protected]> wrote:
> I think that this is related with Decorator class has not a default
> constructor.
>
> What is your Decorator bean you are talking about? Does it contain default
> no param constructor?

Adding the default no-param constructor did not change the symptom.
The decorator is the one from Joe's OWB-151 patch with some mods:

package org.apache.webbeans.newtests.decorators.dependent;

import javax.decorator.Decorator;
import javax.decorator.Delegate;
import javax.inject.Inject;

@Decorator
public abstract class NumberDecorator implements NumberProvider {
        
        public static boolean called = false;

        @Inject @Delegate NumberProvider np;
        
        public NumberDecorator() {
                super();
        }
        public int getANumber() {
                called = true;
                return np.getANumber();
        }
}

(constructor added, class changed to abstract, bean it decorates
changed to non-dependent for simplicity)

-- 
Eric Covener
[email protected]

Reply via email to