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

Archie Cobbs acobbs at openjdk.org
Tue Jun 3 21:37:22 UTC 2025


On Tue, 3 Jun 2025 21:21:46 GMT, Naoto Sato <naoto at openjdk.org> wrote:

> Just a drive-by comment, but should we check the validity of `off`? What if `off` points to the 2nd or 3rd byte in a character in the buffer?

Good question. This method is explicitly documented as assuming that the data is valid UTF-8. It's not trying to handle invalid data.

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

PR Comment: https://git.openjdk.org/jdk/pull/25567#issuecomment-2937267766


More information about the compiler-dev mailing list