ejb@glassfish.java.net

InvocationContext.setParameters() javadoc

From: Wonseok Kim <guruwons_at_gmail.com>
Date: Fri, 21 Apr 2006 14:59:07 +0900

Hi,

While I running devtests (ejb/ejb30/interceptors/session - test#9),
I found that InvocationContext.setParameters(params) can throw
IllegalArgumentException if params' types doesn't match with original
method's types. EJB 3.0 spec says this (added after PFD) and implementation
does this well.

But API javadoc is not updated to reflect IllegalArgumentException,
so I was confused before I check the spec and implementation carefully.

http://fisheye5.cenqua.com/viewrep/glassfish/ejb-api/src/share/classes/javax/interceptor/InvocationContext.java?r=1.2

    /**
     * Sets the parameters that will be used to invoke the
     * business method.
     *
     * @exception java.lang.IllegalStateException if invoked within
     * a lifecycle callback method.
     */
    public void setParameters(Object[] params);

Could you add the exception in the javadoc?

Thanks...