Permalink
Browse files

Throw IllegalStateException if getParameters is called during lifecyc…

…le interceptor chain
  • Loading branch information...
stuartwdouglas committed May 21, 2011
1 parent ca6115b commit 43564050da6831da1522a93d7530f0bfc2e006a2
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/main/java/org/jboss/invocation/InterceptorContext.java
@@ -325,6 +325,9 @@ public Method getMethod() {
}
public Object[] getParameters() {
if(parameters == null) {
throw new IllegalStateException("Cannot call InvocationContext.getParameters() in a lifecycle interceptor method");
}
return parameters;
}

0 comments on commit 4356405

Please sign in to comment.