-
Bug
-
Resolution: Done
-
Major
-
None
-
None
An interceptor with a method with the following signature causes Weld to throw an exception. The signature is allowed according to the interceptors spec.
@PreDestroy public Object destroy(InvocationContext ctx) throws Exception { return doCall(ctx, preDestroy); }
Caused by: org.jboss.weld.exceptions.DefinitionException: WELD-001468 Method destroy defined on class com.sun.ejb.containers.interceptors.SystemInterceptorProxy is not defined according to the specification. It is annotated with @javax.annotation.PreDestroy but it does not have a void return type.