-
Enhancement
-
Resolution: Fixed
-
P4
-
11, 17, 18, 19, 20
-
b07
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8335794 | 17.0.13 | George Adams | P4 | Resolved | Fixed | b01 |
---------------
Ventura 13.1 (22C65)
SDK: MacOSX13.1.sdk (XCode 14.2)
macosx-aarch64-server-release
$ make clean; make; make run-test tier1
=== Output from failing command(s) repeated here ===
* For target support_test_hotspot_jtreg_native_support_libthreadend01_libthreadend01.o:
/Users/christophs/workspace/jdk/test/hotspot/jtreg/serviceability/jvmti/events/ThreadEnd/threadend01/libthreadend01.cpp:59:5: error: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Werror,-Wdeprecated-declarations]
sprintf(name, "%s%d", prefix, eventsCount);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
1 error generated.
* For target support_test_hotspot_jtreg_native_support_libthreadstart01_libthreadstart01.o:
/Users/christophs/workspace/jdk/test/hotspot/jtreg/serviceability/jvmti/events/ThreadStart/threadstart01/libthreadstart01.cpp:58:5: error: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Werror,-Wdeprecated-declarations]
sprintf(name, "%s%d", prefix, eventsCount);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
1 error generated.
- backported by
-
JDK-8335794 Hotspot update for deprecated sprintf in Xcode 14
- Resolved
- relates to
-
JDK-8296812 sprintf is deprecated in Xcode 14
- Resolved
-
JDK-8335775 Remove extraneous 's' in comment of rawmonitor.cpp test file
- Resolved
-
JDK-8299378 sprintf is deprecated in Xcode 14
- Resolved
-
JDK-8301132 Test update for deprecated sprintf in Xcode 14
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/faf55dda
-
Commit openjdk/jdk/e80b5ea4
-
Review openjdk/jdk17u-dev/2663
-
Review openjdk/jdk/11935
-
Review(pr/2842) openjdk/jdk11u-dev/2844