instrument() always recognize an array index modification as read access.

Example:

class MyClass
{
  private int[] a = new int[3];

  public void example()
  {
      a[2] = 5;
  }
}

  Using instrument() with CodeConverter detect  "a[2] = " as a read field access of 
"a". There is no way to modify a index based modification of an array as a write 
access.

  I would like modify the sentence automatically to something like: setA(2,5);  where 
setA is like void setA(int index,int value);

  How can I do ?



<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827147#3827147";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827147>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to