[
https://issues.jboss.org/browse/AS7-4599?page=com.atlassian.jira.plugin.s...
]
v a updated AS7-4599:
---------------------
Description:
javax.interceptor.InterceptorBinding annotation does not work in JBoss 7.1.1.Final. Here
is a test case.
{code}
@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
public class Test {
public void test() {
System.out.println("Test");
}
}
{code}
was:
javax.interceptor.InterceptorBinding annotation does not work in JBoss 7.1.1.Final. Here
is a test case.
{code}
@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");
}
}
{code}
@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.
{code}
@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
public class Test {
public void test() {
System.out.println("Test");
}
}
{code}
--
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