Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1414

Lifecycle callback method signature check not valid

XMLWordPrintable

      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.
      

              rhn-engineering-jharting Jozef Hartinger
              rhn-engineering-jharting Jozef Hartinger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: