byte-buddy icon indicating copy to clipboard operation
byte-buddy copied to clipboard

Create component for method call / field access substitution

Open raphw opened this issue 9 years ago • 3 comments

Create a visitor that allows the substitution of field access / method calls by invoking another method or by delegating to a bootstrap method (replacing the access with an invokedynamic call site).

This should allow for an API similar to this one:

Method bootstrap = ...
AsmVisitorWrapper wrapper = Substitute.with(bootstrap).on(named("foo"));

raphw avatar Sep 23 '16 16:09 raphw

👍

wu-sheng avatar Jan 13 '17 09:01 wu-sheng

Has there been any progress on this feature? This is the main thing stopping us from upgrading from JavaAssist.

zach-herridge avatar Aug 30 '18 15:08 zach-herridge

There is some progress in the MemberSubstitution component. I want to extend its capabilities but for now it is perfectly capable to replace a field or method access with another field or method access.

raphw avatar Aug 30 '18 21:08 raphw

This is MemberSubstitution, in case anybody is wondering.

raphw avatar Apr 11 '23 20:04 raphw