Package: java.lang.* |
Product: JDK |
Release: 1.1.x |
Related Links: |
General
General
General
General
General
General
General
General
General
Runtime
System
|
Comment: |
I have an inner class with the same method name as an outer class method. I cannot find the naming convention for referencing the outer class method from the inner class. I finally gave up and made the names different, but I am still curious how to do it. A small example follows: class outer { ... public void setValue (Object newValue) { } class inner { ... public void setValue (Object newValue) { } public void setOther (Object newOther) { setValue (newOther); // finds inner OK outer.this.setValue(newOther); } } } |