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

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


Upcoming Events


Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.