For those that are not intimately familiar with the mechanics of proxy class generation, it would be great to flesh this out with a code example, that shows the proposed old and new translation. This would make it easier for folks to evaluate the benefits and costs of the approach, and possibly suggest improvements.

On 11/21/2019 10:23 PM, Johannes Kuhn wrote:

* What benefits would such a change have?
First, it allows us to drop the static final fields and the class initializer for the generated proxy classes. Second, it allows the code (both generated and generator) to be more clear by moving the essential parts together. Third, it might bring some performance improvement, because the j.l.r.Method lookup is delayed to it's first use - which in some cases might never happen.

Reply via email to