]
Alexey Kazakov reassigned JBIDE-18852:
--------------------------------------
Assignee: Viacheslav Kabanovich
No warning about missing invocation handler for interface
---------------------------------------------------------
Key: JBIDE-18852
URL:
https://issues.jboss.org/browse/JBIDE-18852
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi-extensions
Affects Versions: 4.2.1.CR1
Reporter: Rastislav Wagner
Assignee: Viacheslav Kabanovich
Fix For: 4.3.0.Alpha1
1. Create CDI 1.1 project and add deltaspike libs
2. create partial bean binding
{code}
@PartialBeanBinding
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface ExamplePartialBeanBinding {
}
{code}
3.create interface
{code}
import javax.enterprise.context.ApplicationScoped;
@ApplicationScoped
@ExamplePartialBeanBinding
public interface Interf {
String sayHello(String hello);
}
{code}
FAIL: There's no warning saying that class should have an invocation handler
4. create abstract class
{code}
import javax.enterprise.context.ApplicationScoped;
@ApplicationScoped
@ExamplePartialBeanBinding
public abstract class Abs {
public abstract String sayHello(String hello);
public String otherHey (String hello) {
return "Other: " + hello;
}
}
{code}
ASSERT: warning about missing invocation handler is displayed for abstract class
5. Check interface class again -> no warning, edit file & save -> warning is
displayed