RFR: 8296812: sprintf is deprecated in Xcode 14 [v2]

Xue-Lei Andrew Fan xuelei at openjdk.org
Mon Nov 14 03:27:09 UTC 2022


On Mon, 14 Nov 2022 01:51:32 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Xue-Lei Andrew Fan has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - use os::snprintf for desktop update
>>  - use os::snprintf
>
> src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp line 638:
> 
>> 636:                         return;
>> 637:                     }
>> 638:                     os::snprintf(channelName, 16, "Ch %d", ch);
> 
> You can't use this here - this is not hotspot code!

You are right.  Reverted to use `snprintf` for desktop update.  Thanks!

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

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


More information about the hotspot-dev mailing list