RFR: 8318486: Rename JavaLangAccess.newString/getBytesUTF8NoRepl to FailFast

Alan Bateman alanb at openjdk.org
Thu Oct 19 07:28:01 UTC 2023


On Thu, 19 Oct 2023 07:04:50 GMT, Chen Liang <liach at openjdk.org> wrote:

> NoRepl means "no replication", which is not what these APIs are for. 

I assume it's "no replace", meaning it reports the error rather than use the coder's replacement value.

I agree it could be renamed but I think look at CodingErrorAction for the established terminology. Your suggestion for "fast fail" will create confusion as maintainers will be forced to wonder if there is potential for failing lazily.

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

PR Comment: https://git.openjdk.org/jdk/pull/16260#issuecomment-1770217422


More information about the core-libs-dev mailing list