[cdi-dev] [JBoss JIRA] (CDI-481) Introduce AnnotatedParameter.getJavaParameter()

Jozef Hartinger (JIRA) issues at jboss.org
Thu Sep 18 11:40:02 EDT 2014

Jozef Hartinger created CDI-481:

             Summary: Introduce AnnotatedParameter.getJavaParameter()
                 Key: CDI-481
                 URL: https://issues.jboss.org/browse/CDI-481
             Project: CDI Specification Issues
          Issue Type: Feature Request
          Components: Portable Extensions
            Reporter: Jozef Hartinger

Make it possible to obtain the Java Reflection object representing the parameter. This is in line with


Can be implemented as a default method such as:
default Parameter getJavaParameter() {
        Member member = getDeclaringCallable().getJavaMember();
        if (!(member instanceof Executable)) {
            throw new IllegalStateException("Parameter does not belong to an executable " + member);
        Executable executable = (Executable) member;
        return executable.getParameters()[getPosition()];

This message was sent by Atlassian JIRA

More information about the cdi-dev mailing list