[code-reflection] Integrated: [samples] Apply type conversion for the int-shift function after the new result op has been built

Juan Fumero duke at openjdk.org
Wed Aug 20 15:07:13 UTC 2025


On Wed, 20 Aug 2025 08:17:48 GMT, Juan Fumero <duke at openjdk.org> wrote:

> This patch fixes the example suite for the `MathOptimizer` example for the integer function transformation.
> 
> To me the transformation correct, we need to convert back from `int` to `double`:
> 
> 
> newResult = blockBuilder.op(JavaOp.conv(JavaType.DOUBLE, newResult));
> 
> 
> How to test it?
> 
> 
> java --enable-preview -cp target/crsamples-1.0-SNAPSHOT.jar oracle.code.samples.MathOptimizer

This pull request has now been integrated.

Changeset: 939aeaa8
Author:    Juan Fumero <jjfumero at gmail.com>
Committer: Paul Sandoz <psandoz at openjdk.org>
URL:       https://git.openjdk.org/babylon/commit/939aeaa815b6b43b5866f330cbf990102f050c30
Stats:     21 lines in 3 files changed: 18 ins; 3 del; 0 mod

[samples] Apply type conversion for the int-shift function after the new result op has been built

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

PR: https://git.openjdk.org/babylon/pull/528


More information about the babylon-dev mailing list