You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, it is possible to add methods using manifold-ext. However, overriding the body of an existing method is not supported. This feature could be useful to inject custom logic before or after the original method call, or even to completely replace the method body.
At present, this is not possible because attempting to add an extension with the same method signature results in an exception.
I propose the following solution: adding an @Intercept annotation to an extension method would allow you to override the method’s body, potentially invoking the original method within the intercepted extension. For example:
Currently, it is possible to add methods using
manifold-ext
. However, overriding the body of an existing method is not supported. This feature could be useful to inject custom logic before or after the original method call, or even to completely replace the method body.At present, this is not possible because attempting to add an extension with the same method signature results in an exception.
I propose the following solution: adding an
@Intercept
annotation to an extension method would allow you to override the method’s body, potentially invoking the original method within the intercepted extension. For example:The text was updated successfully, but these errors were encountered: