Mantis - Resin
Viewing Issue Advanced Details
4091 minor always 06-29-10 06:41 07-09-10 17:21
swiegersf  
ferg  
normal  
closed 4.0.7  
fixed  
none    
none 4.0.9  
0004091: CDI Extension: ProcessAnnotatedType throws StackOverflowError
Good day,

I'm trying to build a CDI portable extension that observes the ProcessAnnotatedType event (as per the CDI spec 11.5.5), using Resin 4.0.7's client container (I believe this should happen in the actual application server too, I haven't tested it there).

However, if I register my extension below:

Code:
public class RemoteExtension implements Extension {

    public <T> void decorateAnnotatedType(@Observes ProcessAnnotatedType<T> pat) {
}
}
I get:

Code:
Exception in thread "main" java.lang.StackOverflowError
    at com.caucho.config.reflect.BaseType.create(BaseType.java:141)
    at com.caucho.config.reflect.BaseType.toBaseType(BaseType.java:214)
    at com.caucho.config.reflect.BaseType.create(BaseType.java:164)
    at com.caucho.config.reflect.BaseType.create(BaseType.java:110)
    at com.caucho.config.reflect.BaseType.create(BaseType.java:154)
    at com.caucho.config.reflect.BaseType.toBaseType(BaseType.java:214)
    at com.caucho.config.reflect.BaseType.create(BaseType.java:164)
    at com.caucho.config.reflect.BaseType.create(BaseType.java:110)
    at com.caucho.config.reflect.BaseType.create(BaseType.java:154)
    at com.caucho.config.reflect.BaseType.toBaseType(BaseType.java:214)

Notes
(0004668)
ferg   
07-09-10 17:20   
ioc/0p2c

This should be fixed in 4.0.8 as well.