技术限制啊
接口毕竟多一层引用,可以在匹配实现类的过程中动手脚
类方法调用为了降低开销,入口应该都是字节码联编时就固化了
【 在 nikezhang 的大作中提到: 】
: 也就是说,给纯class设置代理,还离不开cglib?jdk为啥只支持接口不支持clas?bubu
: ess classes normally implement one or more business interfaces. It is possible to force the use of CGLIB, in those (hopefully rare) cases where you need to advise a method that is not declared on an interface or where you need to pass a proxied object to
: a method as a concrete type.
: ...................
--
修改:oldwatch FROM 116.233.92.*
FROM 116.233.92.*