RFR: 8318200: String::newStringNoRepl and String::getBytesNoRepl does not throw CharacterCodingException [v5]

Glavo duke at openjdk.org
Wed Oct 18 18:17:24 UTC 2023


On Tue, 17 Oct 2023 14:22:10 GMT, Shaojin Wen <duke at openjdk.org> wrote:

>> When calling String::newStringNoRepl and String::getBytesNoRepl, we need to use try...catch to handle CharacterCodingException and throw IllegalArgumentException instead of CharacterCodingException to make the calling code cleaner.
>
> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
> 
>   fix from @AlanBateman 's review

Should we revisit https://github.com/openjdk/jdk/pull/14655?

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

PR Comment: https://git.openjdk.org/jdk/pull/16209#issuecomment-1769082700


More information about the security-dev mailing list