-
Sub-task
-
Resolution: Done
-
Major
-
None
-
Documentation (Ref Guide, User Guide, etc.)
-
Not Required
This quick fix should offer to delete @Interceptor/@Decorator annotation
Test case:
EXECUTE: Create CDI project
EXECUTE: Create SessionBeanAnnotatedDecoratorBroken class
package org.test; import javax.decorator.Decorator; import javax.ejb.Stateless; @Decorator @Stateless public class SessionBeanAnnotatedDecoratorBroken { }
ASSERT: Both annotations (@Decorator and @Stateless) should be marked by problem marker
EXECUTE: Point mouse to @Decorator or @Stateless annotation
ASSERT: Text hover with "Delete @Decorator annotation from 'SessionBeanAnnotatedDecoratorBroken' class" appears
EXECUTE: Create SessionBeanAnnotatedInterceptorBroken class
package org.test; import javax.ejb.Singleton; import javax.interceptor.AroundInvoke; import javax.interceptor.Interceptor; import javax.interceptor.InvocationContext; @Interceptor @Singleton public class SessionBeanAnnotatedInterceptorBroken { @AroundInvoke public Object alwaysReturnThis(InvocationContext ctx) throws Exception { return ctx.proceed(); } }
ASSERT: Both annotations (@Interceptor and @Singleton) should be marked by problem marker
EXECUTE: Point mouse to @Interceptor or @Singleton annotation
ASSERT: Text hover with "Delete @Interceptor annotation from 'SessionBeanAnnotatedInterceptorBroken' class" appears