List Info

Thread: Created: (JASSIST-59) ArrayIndexOutOfBoundsException when replacing field




Created: (JASSIST-59) ArrayIndexOutOfBoundsException when replacing field
country flaguser name
United States
2008-03-29 21:08:51
ArrayIndexOutOfBoundsException when replacing field access
in conditional expression
------------------------------------------------------------
------------------------

                 Key: JASSIST-59
                 URL: http://j
ira.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.atl
assian.com/software/jira

        
_______________________________________________
jboss-jira mailing list
jboss-jiralists.jboss.org
h
ttps://lists.jboss.org/mailman/listinfo/jboss-jira

Closed: (JASSIST-59) ArrayIndexOutOfBoundsException when replacing field a
country flaguser name
United States
2008-03-29 21:34:40
     [ http://jira.jboss.com/jira/browse/JASSIST-59?page=all
]

Carlos Pita closed JASSIST-59.
------------------------------

    Resolution: Rejected

Sorry, I mistaken the bug I'm experiencing with another
possible one commented at tapestry's list. I'll try to
determine the real reason behind the bug, and if it happens
to be javassist related will open a new issue.

> ArrayIndexOutOfBoundsException when replacing field
access in conditional expression
>
------------------------------------------------------------
------------------------
>
>                 Key: JASSIST-59
>                 URL: http://j
ira.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.atl
assian.com/software/jira

        
_______________________________________________
jboss-jira mailing list
jboss-jiralists.jboss.org
h
ttps://lists.jboss.org/mailman/listinfo/jboss-jira

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )