Title: Message Title
|
|
|
|
|
Change By:
|
Matej Novotny
|
|
Environment:
|
When defining an Interceptor like this:
{code:java} public class MyInterceptor { @PostConstruct public Object wrapC(InvocationContext ctx) throws Exception { { // ... return ctx.proceed(); // throws Exception } {code} Then I get this warning by Weld: {code} WARN: WELD-001471: Interceptor method wrapC defined on class com.MyInterceptor is not defined according to the specification. It should not throw java.lang.Exception, which is a checked exception. {code}
However, the javadoc of javax.annotation.PostConstruct says: {code} The method defined on an interceptor class MUST HAVE one of the following signatures:
void <METHOD>(InvocationContext)
Object <METHOD>(InvocationContext) throws Exception {code} http://docs.oracle.com/javaee/7/api/javax/annotation/PostConstruct.html
It would be nice if the warning would allow Exception for the signature with the Exception
|
|
When defining an Interceptor like this:
{code:java} public class MyInterceptor { @PostConstruct public Object wrapC(InvocationContext ctx) throws Exception { { // ... return ctx.proceed(); // throws Exception } {code} Then I get this warning by Weld: {code} WARN: WELD-001471: Interceptor method wrapC defined on class com.MyInterceptor is not defined according to the specification. It should not throw java.lang.Exception, which is a checked exception. {code}
However, the javadoc of javax.annotation.PostConstruct says: {code} The method defined on an interceptor class MUST HAVE one of the following signatures:
void <METHOD>(InvocationContext)
Object <METHOD>(InvocationContext) throws Exception {code} http://docs.oracle.com/javaee/7/api/javax/annotation/PostConstruct.html
It would be nice if the warning would allow Exception for the signature with the Exception
|
|
|
|
|
|
|
|
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues