WIP [update java bindings v0.14.0]#3663
Conversation
|
Hello, I am a code review agent on flows.network. Here are my reviews of changed source code files in this PR. bindings/java/wasmedge-java/src/main/java/org/wasmedge/NativeUtils.javaPotential issues
Summary of changes
bindings/java/wasmedge-java/wasmedge-jni/lib/FunctionTypeContext.cPotential issues
Summary of changes
bindings/java/wasmedge-java/wasmedge-jni/lib/GlobalTypeContext.cPotential issues
Summary of changes
bindings/java/wasmedge-java/wasmedge-jni/lib/TableInstanceContext.cPotential issues
Summary of changes
bindings/java/wasmedge-java/wasmedge-jni/lib/TableTypeContext.cPotential issues
Summary of changes
bindings/java/wasmedge-java/wasmedge-jni/lib/ValueType.cPotential issues
Summary of changes
bindings/java/wasmedge-java/wasmedge-jni/lib/common.cPotential issues
Summary of changes
bindings/java/wasmedge-java/wasmedge-jni/lib/common.hPotential issues
Summary of changes
|
|
@Kuntal271 please fix the DCO check, you need to leave your email at Sign-Off line in commit message, then fix the conflicts. |
| switch(type){ | ||
| case 0x7F: | ||
| finalType = WasmEdge_ValTypeGenI32(); | ||
| break; | ||
| case 0x7E: | ||
| finalType = WasmEdge_ValTypeGenI64(); | ||
| break; | ||
| case 0x7D: | ||
| finalType = WasmEdge_ValTypeGenF32(); | ||
| break; | ||
| case 0x7C: | ||
| finalType = WasmEdge_ValTypeGenF64(); | ||
| break; | ||
| case 0x7B: | ||
| finalType = WasmEdge_ValTypeGenV128(); | ||
| break; | ||
| case 0x70: | ||
| finalType = WasmEdge_ValTypeGenFuncRef(); | ||
| break; | ||
| case 0x6F: | ||
| finalType = WasmEdge_ValTypeGenExternRef(); | ||
| break; | ||
| } | ||
|
|
There was a problem hiding this comment.
@q82419 I'm wondering does there exist a more automatic solution? Since component model will put tons of repeated work here at future (very predictable).
| JNIEXPORT jint JNICALL Java_org_wasmedge_GlobalTypeContext_nativeGetValueType( | ||
| JNIEnv *env, jobject thisObject) { | ||
| return WasmEdge_GlobalTypeGetValType(getGlobalTypeContext(env, thisObject)); | ||
| WasmEdge_GlobalTypeContext *globalTypeContext = getGlobalTypeContext(env, thisObject); |
There was a problem hiding this comment.
I would say if this is no longer been used by any internal works here, then remove this, since user should invoke IsXXX to check to avoid leak more details of implementation.
|
Please rebase to the latest changes. |
|
Hi @Kuntal271 |
|
I’m a bit preoccupied these days and might not be able to work on the PR immediately. I’ll make progress on it whenever I get some time. If there’s a deadline or if it’s urgent, feel free to take it over and proceed with it. |
|
Closing due to #4191 |
No description provided.