Wither

Results 54 comments of Wither

> 好吧,看来 [JavetBuddy](https://github.com/caoccao/JavetBuddy) 将来需要适应 Android。 I've also used ByteBuddy before, it seems to be stuck in the getLoaded place, when I tried to generate class before, it can only work...

`public class runtime { public static String path; private static String[] classForName(String jar) throws IOException { ArrayList list = new ArrayList(); JarFile jarFile = new JarFile(jar); Enumeration entrys = jarFile.entries();...

> Kotlin 类不是标准的 Java 类。出于向后兼容性的原因,Javet 在 JDK 8 上,因此它无法识别 Kotlin 类。 https://github.com/caoccao/Javet/issues/324#issuecomment-2080814450,I mean load the class of the external jar and expect the proxy to be able to proxy it

> > > Kotlin 类不是标准的 Java 类。 出于向后兼容性的原因,Javet 在 JDK 8 上,因此它无法识别 Kotlin 类。 > > > > > > [#324 (注释)](https://github.com/caoccao/Javet/issues/324#issuecomment-2080814450) 意味着加载外部 jar 的类并期望代理能够代理它 > > 有些细节你没有透露。这就是为什么我需要一个包含所有代码的存储库。 There is...

> > > Kotlin 类不是标准的 Java 类。 出于向后兼容性的原因,Javet 在 JDK 8 上,因此它无法识别 Kotlin 类。 > > > > > > [#324 (注释)](https://github.com/caoccao/Javet/issues/324#issuecomment-2080814450) 意味着加载外部 jar 的类并期望代理能够代理它 > > 有些细节你没有透露。这就是为什么我需要一个包含所有代码的存储库。 I've now...

> 所有内容都存储在 .您可以在那里注册任意类。`ClassDescriptorStore` ClassDescriptorStore.getClassMap().put(clazz, new ClassDescriptor(V8ProxyMode.Class, clazz, ?)); I'm not very familiar with this API, how do I write the last plugin

> 没有回购,我的帮助是有限的。 Thank you, my friend, I solved it by manually registering and it works normally, but I personally feel a bit cumbersome

The await blocking was used to make the setTimeout APIs work properly, but the normal error caused it to jump out of the try interception

> 我没有看到任何问题。你能留下完成代码吗? try { bindModule(); v8.setV8ModuleResolver(new IV8ModuleResolver() { @Override public IV8Module resolve(V8Runtime v8Runtime, String resourceName, IV8Module v8ModuleReferrer) throws JavetException { v8Runtime.setV8ModuleResolver(new JavetBuiltInModuleResolver()); return v8Runtime.getExecutor(com.editor.async.files.file.READ(new File(path).getParent() + "/"+resourceName)).setModule(true).setResourceName(resourceName).compileV8Module(); } }); JavetProxyConverter...

> 我没有看到任何问题。你能留下完成代码吗? The data is the above js code, which deliberately throws an error, but it can't be intercepted