i have read the following post
[Oracle Discontinuing sun.reflect.Reflection.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前端其它相关文章！