以下
default方法使用反射调用作用域类方法
public void discardMap() { //CustomMap map = (CustomMap) hi.getMap(); //map.discard(); try { Object o =hi.getClass().getMethod("getMap").invoke(hi); Method m = o.getClass().getMethod("discard"); m.setAccessible(true); m.invoke(o); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); }}


