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

Maurizio Cimadamore mcimadamore at openjdk.org
Thu Mar 13 10:04:26 UTC 2025


On Wed, 12 Mar 2025 23:08:37 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.
>
> Mourad Abbay has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add tests to make sure literals of type byte/short are created the way Java language permit.

Very good - thanks for adding the tests!

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

Marked as reviewed by mcimadamore (Reviewer).

PR Review: https://git.openjdk.org/babylon/pull/351#pullrequestreview-2681254467


More information about the babylon-dev mailing list