This discussion is archived
4 Replies Latest reply: Apr 10, 2012 3:05 PM by 685037 RSS

replace dynamic proxies and reflection with invokedynamic

vlada Newbie
Currently Being Moderated
I have an application that extensively uses reflection and dynamic proxies. It was built on Java 6. Now, I rebuilt it on Java 7, and I am thinking of replacing all reflection and proxies with new invokedynamic.

Can anybody tell me if it's worth the trouble? I mean, will I get any significant performance boost, and will it complicate or simplify my source code?

Also, can you recommend some good tutorials or articles to get me started? I found some, but they confuse me more then they help :-). I think I have an idea how to replace reflection calls, but can't really figure out how to replace dynamic proxies (is there a replacement for InvocationHandler, or something like that?).

Thanks for any help.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points