[jdk11u-dev] Integrated: 8318854: [macos14] Running any AWT app prints Secure coding warning
Amos Shi
ashi at openjdk.org
Thu Apr 25 15:14:48 UTC 2024
On Thu, 11 Apr 2024 08:12:21 GMT, Amos Shi <ashi at openjdk.org> wrote:
> Backport of [JDK-8318854](https://bugs.openjdk.org/browse/JDK-8318854)
>
> Testing in Local: Passed on `MacOS 14.4.1 (23E224)`
> - Before the Change, the message is shown
> - `WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.`
>
>
> SwingSet2 % pwd
> SAPDevelop/github.com/dev-8318854-11/build/macosx-aarch64-normal-server-slowdebug/images/jdk/demo/jfc/SwingSet2
>
> SwingSet2 % ~/SAPDevelop/tools/java-11/Contents/Home/bin/java -version
> openjdk version "11.0.19" 2023-04-18 LTS
> OpenJDK Runtime Environment SapMachine (build 11.0.19+7-LTS-sapmachine)
> OpenJDK 64-Bit Server VM SapMachine (build 11.0.19+7-LTS-sapmachine, mixed mode)
>
> SwingSet2 % ~/SAPDevelop/tools/java-11/Contents/Home/bin/java -jar SwingSet2.jar
> 2024-04-23 14:26:21.290 java[61586:391167] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
>
>
> - After the Change, the message is gone
>
>
> SwingSet2 % pwd
> SAPDevelop/github.com/dev-8318854-11/build/macosx-aarch64-normal-server-slowdebug/images/jdk/demo/jfc/SwingSet2
>
> SwingSet2 % ~/SAPDevelop/github.com/dev-8318854-11/build/macosx-aarch64-normal-server-slowdebug/images/jdk/bin/java -version
> openjdk version "11.0.24-internal" 2024-07-16
> OpenJDK Runtime Environment (slowdebug build 11.0.24-internal+0-adhoc.I048686.dev-8318854-11)
> OpenJDK 64-Bit Server VM (slowdebug build 11.0.24-internal+0-adhoc.I048686.dev-8318854-11, mixed mode)
>
> SwingSet2 % ~/SAPDevelop/github.com/dev-8318854-11/build/macosx-aarch64-normal-server-slowdebug/images/jdk/bin/java -jar SwingSet2.jar
> 2024-04-23 14:28:58.784 java[62205:395610] name is : .SFNS-Regular
> 2024-04-23 14:28:58.784 java[62205:395610] family is : .AppleSystemUIFont
> 2024-04-23 14:28:58.784 java[62205:395610] name is : .SFNS-Bold
> 2024-04-23 14:28:58.784 java[62205:395610] family is : .AppleSystemUIFont
> 2024-04-23 14:28:58.967 java[62205:395610] nsFont-name is : .AppleSystemUIFont
>
>
> Testing on Servers
> - Pipeline: **All checks have passed**
> - Testing Machine: SAP nightlies passed on `2024-04-16,17,19,20`
This pull request has now been integrated.
Changeset: 6cce290c
Author: Amos Shi <ashi at openjdk.org>
URL: https://git.openjdk.org/jdk11u-dev/commit/6cce290c1f6e0a6f16ed49f44f2b5c83ef357cea
Stats: 66 lines in 4 files changed: 42 ins; 2 del; 22 mod
8318854: [macos14] Running any AWT app prints Secure coding warning
Backport-of: 940f67c1a62c6f9462266f3a108649aca114cffa
-------------
PR: https://git.openjdk.org/jdk11u-dev/pull/2649
More information about the jdk-updates-dev
mailing list