RFR: 8358066: Non-ascii package names gives compilation error "import requires canonical name"

Archie Cobbs acobbs at openjdk.org
Mon Jun 2 14:27:08 UTC 2025


A simple counting bug in `Convert.utfNumChars()` causes bogus compiler errors for `import` statements of non-ASCII class names when the compiler is configured to use one of the older UTF-8 based `Name` table implementations (e.g., by specifying the `-XDuseUnsharedTable=true` flag).

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

Commit messages:
 - Fix bug in Convert.utfNumChars().

Changes: https://git.openjdk.org/jdk/pull/25567/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25567&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8358066
  Stats: 76 lines in 2 files changed: 71 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/25567.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25567/head:pull/25567

PR: https://git.openjdk.org/jdk/pull/25567


More information about the compiler-dev mailing list