From: <jas...@jb...> - 2006-06-30 05:21:03
|
"chiba" wrote : Implementing this spec. would be tricky. Because: | | | | test.array[5] = 10; | | | | is compiled into: | | | | long[] a = test.array; | | a[5] = 10; | | | | It would be difficult to recognize "a" is "test.array" when Javassist transforms "a[5] = 10". | | | It seems this isn't the case for the sun compiler: 20: getfield #2; //Field array:[J 23: iconst_5 24: lconst_1 25: lastore Or did you mean that a user can assign it to a local var and manipulate it there? In that case, couldnt you store a reference map from local vars to arrays you are interested in? -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954588#3954588 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954588 |