[jboss-jira] [JBoss JIRA] Created: (JASSIST-59) ArrayIndexOutOfBoundsException when replacing field access in conditional expression
Carlos Pita (JIRA)
jira-events at lists.jboss.org
Sat Mar 29 22:08:51 EDT 2008
ArrayIndexOutOfBoundsException when replacing field access in conditional expression
------------------------------------------------------------------------------------
Key: JASSIST-59
URL: http://jira.jboss.com/jira/browse/JASSIST-59
Project: Javassist
Issue Type: Bug
Reporter: Carlos Pita
Assigned To: Shigeru Chiba
Priority: Critical
When there is a field accessed in method in transformed class, and
be used in one side of condition statement such as
if (_encoder == null) // this line may cause error
{
_formSupport.store(this, new RestoreState(_value));
}
else
...
later on, a Javassist FieldAccess for this field replace the method
body by "$_ = $0._$read_parameter_anchor();", (happens on line 1546 in
InternalClassTransformationImpl.class), then I got
ArrayIndexOutOfBoundsException on methods either write16bit() or
sameLocals().
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list