Blah.java

Power Java
Limitations of reflective method lookup
by Paul Holser
Listing 2. Blah.java.


package test.reflection;

public class Blah {
  private int i;

  public Blah(int i) { this.i = i; }
  public void bar(int i) { this.i = i; }
  public void foo(Blah b) { i = b.getI(); }
  public int getI() { return i; }
}

About the Author

Paul Holser is a senior consultant at Valtech, an international consulting group specializing in e-business technologies. He can be contacted at [email protected].