[jbosstools-issues] [JBoss JIRA] (JBIDE-18852) No warning about missing invocation handler for interface

Rastislav Wagner (JIRA) issues at jboss.org
Mon Dec 1 07:58:39 EST 2014


Rastislav Wagner created JBIDE-18852:
----------------------------------------

             Summary: 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
             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



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the jbosstools-issues mailing list