Hi Christian, it seems you're hitting one of the JVM limitations here. The truth is that your class should be ok, but if decorators/interceptors/client proxies are involved Weld has to enhance the class with implementation-specific code. In this case, Weld attempts to create a static initializer of a length that exceeds the allowed limit of 65536 bytes (see also The Code Attribute ). Note that there are other limitations of the JVM.
In any case, we can try to optimize the implementation a little bit.
|