Losin6450
Losin6450
You can use a library like Bytebuddy to do this: ```js const ByteBuddy = javet.package.net.bytebuddy.ByteBuddy; const Handler = javet.package.Handler; const HandlerAdapter = javet.package.net.bytebuddy.implementation.InvocationHandlerAdapter; const ElementMatchers = javet.package.net.bytebuddy.matcher.ElementMatchers; const defaultLoader =...
and by utilizing javascripts classes you can change the function a bit to make it easier to create proxies ```js function extendClass(cls, jsclass){ let loader = defaultLoader; let buddy =...
you can access the proxy object by using this in the function but you are not able to use super to get the super object.
Added a bit onto it and have gotten it to this result ```js const ByteBuddy = javet.package.net.bytebuddy.ByteBuddy; const Handler = javet.package.Handler; const HandlerAdapter = javet.package.net.bytebuddy.implementation.InvocationHandlerAdapter; const ElementMatchers = javet.package.net.bytebuddy.matcher.ElementMatchers; function...
but if this were to change you would be able to use extends
> > > Added a bit onto it and have gotten it to this result > > > ```js > > > const ByteBuddy = javet.package.net.bytebuddy.ByteBuddy; > > > const...
well if you are gonna change the source code you might as well use [this](https://www.caoccao.com/Javet/tutorial/advanced/access_the_whole_jvm.html#play-with-dynamic-object).
i have tried different versions and none worked
https://github.com/Losin6450/JavetIssue356/tree/main