[code-reflection] RFR: ONNX fixes

Paul Sandoz psandoz at openjdk.org
Fri Sep 12 17:01:52 UTC 2025


On Fri, 12 Sep 2025 09:58:04 GMT, Adam Sotona <asotona at openjdk.org> wrote:

> This patch includes:
> - `OnnxTransformer` fix of returning in-code constructed list of tensors
> - `README.md` fix of the examples execution
> - workaround to avoid CNFE when the `ReleaseEnv` class is attempted to load in the above shutdown hook from already closed classloader

cr-examples/onnx/src/main/java/oracle/code/onnx/OnnxRuntime.java line 266:

> 264:             // workaround to avoid CNFE when the ReleaseEnv class is attempted to load in the above shutdown hook from already closed classloader
> 265:             Class.forName("oracle.code.onnx.foreign.OrtApi$ReleaseEnv");
> 266:         } catch (ClassNotFoundException _) {}

That's awkward. Can you move it to the static initializer block?

-------------

PR Review Comment: https://git.openjdk.org/babylon/pull/565#discussion_r2344920533


More information about the babylon-dev mailing list