RFR: 8303623: Compiler should disallow non-standard UTF-8 string encodings [v2]
Archie L. Cobbs
duke at openjdk.org
Mon Mar 20 15:46:13 UTC 2023
On Sat, 18 Mar 2023 18:19:14 GMT, Vicente Romero <vromero at openjdk.org> wrote:
>> Archie L. Cobbs has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Allow longer-than-necessary UTF-8 encoding in classfiles with major < 48.
>
> src/jdk.compiler/share/classes/com/sun/tools/javac/util/InvalidUtfException.java line 34:
>
>> 32: * @see Convert#utfValidate
>> 33: */
>> 34: public class InvalidUtfException extends Exception {
>
> I think we should add the proverbial disclaimer: `This is NOT part of any supported API.`, etc
Yep - thanks. Fixed in 62930b59ecd.
-------------
PR: https://git.openjdk.org/jdk/pull/12893
More information about the compiler-dev
mailing list