0 Replies Latest reply on May 26, 2004 12:59 PM by frank.astier

    Intercepting set on bidim array

    frank.astier Newbie

      I was wondering how I could get the values of the indices that refer to a specific var in a bidim array. I want to intercept any attempt to set on someStrings (below), find out which String you are trying to modify and do something at that point.

      public class SomeClass {

      private String[][] someStrings;

      public Debug implements Interceptor {

      public String getName() {...}

      public Object invoke(Invocation invocation) throws Throwable {
      // find out which String in someStrings is being accessed