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

Mourad Abbay mabbay at openjdk.org
Wed Mar 12 17:58:59 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.

Mourad Abbay has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge branch 'code-reflection' into fix-literal-type
 - Represents literals of type byte/short as permitted in the Java language.

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

Changes:
  - all: https://git.openjdk.org/babylon/pull/351/files
  - new: https://git.openjdk.org/babylon/pull/351/files/ec41ee8d..41cb5acf

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=babylon&pr=351&range=01
 - incr: https://webrevs.openjdk.org/?repo=babylon&pr=351&range=00-01

  Stats: 10673 lines in 269 files changed: 4831 ins; 5080 del; 762 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