Closed kateinoigakukun closed 3 years ago
@kawamuray OK, I confirmed that it has enough features to satisfy my use cases. So if you have time, could you publish a new version?
@kateinoigakukun Ok, I've just released 0.5.0. It should be become visible on Maven Central repository within next few hours.
As you commented in TODO, the trap exception should be converted into its specific error to distinguish from wasmtime internal error.
https://github.com/kawamuray/wasmtime-java/blob/e2691194fd9414a1390dcc6d47b391a16801d0d3/wasmtime-jni/src/io_github_kawamuray_wasmtime_Func/imp.rs#L78-L79
This PR makes Java Trap class be a subclass of RuntimeException and throws it while calling wasm functions.