jbossas/jboss-as — pull request #1206 by Lerm (2012-01-24 21:32:40+00:00)
Title: Primitive types don't need to be cloned in LocalEjbReceiver

If 'pass-by-value' is disabled for the ejb client, then no cloning should be performed for parameters of primitive types. Current version of code still tries to clone them, as declared parameter class (primitive type) is not equal to runtime parameter value used during the invocation ('boxed' class for primitive type), this results a lot of cloning requests in case of remote methods with primitive types.

See AS7-3435 for more details.