[code-reflection] Integrated: Represents literals of type byte/short as permitted in the Java language

Mourad Abbay mabbay at openjdk.org
Thu Apr 3 18:23:08 UTC 2025


On Wed, 12 Mar 2025 17:44:40 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:

> Before this PR, we had literals of type byte/short in the code model, but that's not permitted by the Java language. In Java, a literals of type byte/short is a literal of type int + conversion to the type byte/short.

This pull request has now been integrated.

Changeset: fd979023
Author:    Mourad Abbay <mabbay at openjdk.org>
URL:       https://git.openjdk.org/babylon/commit/fd9790233138b1a9d622440287fccd56cd7e9f1b
Stats:     127 lines in 3 files changed: 118 ins; 5 del; 4 mod

Represents literals of type byte/short as permitted in the Java language

Reviewed-by: mcimadamore, psandoz

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

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


More information about the babylon-dev mailing list