public class VisibilityBridgedMethod {
static class Parent {
public String methodToCall() { return "value" ; }
}
public static class Child extends Parent {
// methodToCall() will be bridged by compiler
}
public static void main( String [] args) {
ELProcessor processor = new ELProcessor();
processor.defineBean( "child" , new Child());
processor.eval( "child.methodToCall()" );
}
}