mulesoft/mule-devkit — Issue #71: @Inject for MuleContext throws StackOverflowException
Author: marianogonzalez
Created: 2012-01-09 13:16:11+00:00
State: open

Hello,

I used devkit to generate a new Module which needed a reference to the MuleContext. Therefore, I wrote:

@Inject
private MuleContext muleContext;

After generating the code, an injection adapter was generated that read as follows:

XXXInjectionAdapter implements MuleContextAware {

public void setMuleContext(MuleContext context) {
setMuleContext(context);
}

The error in the generated setMuleContext method generated a StackOverFlowException.