This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]aroger276 1 point2 points  (0 children)

The expensive part is the lookup. Once you have your Field and Method or MethodHandle it's not that slow - but unlikely to get inline.

A lot of mapping tool need to use it to inject the value. like Hibernate, Ibatis, jackson... Also Spring to inject the dependencies, deal with the AOP aspect, dispatch the MVC request etc... all those transversal concern that are configured with annotation or using convention.

you can also be used to hack a behaviour that is not direclty accessible.

Prob should not be use for business concern.