jdk11u-dev icon indicating copy to clipboard operation
jdk11u-dev copied to clipboard

8299378: sprintf is deprecated in Xcode 14

Open vieiro opened this issue 7 months ago • 4 comments

Clean backport of JDK-8299378, as applied to 17.

This replaces the deprecated sprintf with os::snprintf_checked in more places, for the build to progress in the new macos-13 GHA.

The build will still fail until all remaining backports replace sprintfin all places of the codebase.


Progress

  • [x] Change must not contain extraneous whitespace
  • [x] Commit message must refer to an issue
  • [ ] JDK-8299378 needs maintainer approval

Integration blocker

 ⚠️ Dependency #2846 must be integrated first

Issue

  • JDK-8299378: sprintf is deprecated in Xcode 14 (Enhancement - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/2848/head:pull/2848
$ git checkout pull/2848

Update a local copy of the PR:
$ git checkout pull/2848
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/2848/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2848

View PR using the GUI difftool:
$ git pr show -t 2848

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/2848.diff

Webrev

Link to Webrev Comment

vieiro avatar Jul 10 '24 15:07 vieiro