Java 7u40 Java SE 8 sun.reflect.Reflection.getCallerClass

i have read the following post [Oracle Discontinuing sun.reflect.Reflection.getCallerClass][1] [1]: http://www.infoq.com/news/2013/07/Oracle-Removes-getCallerClass i was wondering what this change really means. 1). Means that this class sun.reflect.Reflection.getCallerClass will be rewritten to provide more security in `Java reflection`? 2). Means this class will no more be needed? maybe another approach? 3). Reflection will be over in Java 8. method.invoke will throw UnsupportedOperationException.?? 4). this will affect anything related to Spring or AspectJ Aspect Oriented Programming? i was wondering because we use Reflection `method.invoke` to provide some flags to the class before being send to the DB. this raises another question if reflection is over what approach can i use to provide my behavior above. i think AOP is a way to go. thanks a lot.

以上就是Java 7u40 Java SE 8 sun.reflect.Reflection.getCallerClass的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏