[code-reflection] RFR: Improved error message on OpenCLBackend if Reflect annotation is missing on transitive methods from kernel method

Nadeesh TV ntv at openjdk.org
Thu Jan 1 23:02:30 UTC 2026


On Thu, 1 Jan 2026 19:57:48 GMT, Gary Frost <gfrost at openjdk.org> wrote:

>I suspect that there is a 'dangling' else in there that is allowing us to progress if a code model could not be located.

Problem is that there is no [else](https://github.com/openjdk/babylon/blob/code-reflection/hat/core/src/main/java/hat/BufferTagger.java#L81) . We inline functions that have code model available and ignoring the other case. Therefore, there also it's the same issue . InvokeOp like `hat.buffer.S32Array::array(long)` etc. will reach the else part and thus we need a criteria to differentiate between  `hat.buffer.S32Array::array()`  and `squareitWithoutReflectAnnotation`.

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

PR Review Comment: https://git.openjdk.org/babylon/pull/798#discussion_r2656659794


More information about the babylon-dev mailing list