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

Mourad Abbay mabbay at openjdk.org
Wed Mar 12 17:49:43 UTC 2025


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.

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

Commit messages:
 - Represents literals of type byte/short as permitted in the Java language.

Changes: https://git.openjdk.org/babylon/pull/351/files
  Webrev: https://webrevs.openjdk.org/?repo=babylon&pr=351&range=00
  Stats: 9 lines in 1 file changed: 1 ins; 4 del; 4 mod
  Patch: https://git.openjdk.org/babylon/pull/351.diff
  Fetch: git fetch https://git.openjdk.org/babylon.git pull/351/head:pull/351

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


More information about the babylon-dev mailing list