[jboss-jira] [JBoss JIRA] (AS7-4599) @InterceptorBinding annotation does not work
v a (JIRA)
jira-events at lists.jboss.org
Tue Apr 24 00:21:17 EDT 2012
v a created AS7-4599:
------------------------
Summary: @InterceptorBinding annotation does not work
Key: AS7-4599
URL: https://issues.jboss.org/browse/AS7-4599
Project: Application Server 7
Issue Type: Bug
Components: CDI / Weld
Affects Versions: 7.1.1.Final
Reporter: v a
Assignee: Stuart Douglas
javax.interceptor.InterceptorBinding annotation does not work in JBoss 7.1.1.Final. Here is a test case.
@Inherited
@Target({ TYPE, METHOD })
@Retention(RUNTIME)
@InterceptorBinding
public @interface Secure {}
@Secure
@Interceptor
public class SecurityInterceptor {
@AroundInvoke
public Object invoke(InvocationContext ctx) throws Exception
{
System.out.println("here " + ctx);
return ctx.proceed();
}
}
@Stateless
@Secure
@Local
public class Test {
public void test() {
System.out.println("Test");
}
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list