[jdk17u-dev] RFR: 8318854: [macos14] Running any AWT app prints Secure coding warning
Goetz Lindenmaier
goetz at openjdk.org
Thu Apr 25 08:43:36 UTC 2024
On Thu, 11 Apr 2024 08:12:16 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 this 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-17/build/macosx-aarch64-server-slowdebug/images/jdk/demo/jfc/SwingSet2
>
> SwingSet2 % ~/SAPDevelop/tools/java-17/Contents/Home/bin/java -version
> openjdk version "17.0.10" 2024-01-16 LTS
> OpenJDK Runtime Environment SapMachine (build 17.0.10+7-LTS)
> OpenJDK 64-Bit Server VM SapMachine (build 17.0.10+7-LTS, mixed mode, sharing)
>
> SwingSet2 % ~/SAPDevelop/tools/java-17/Contents/Home/bin/java -jar SwingSet2.jar
> 2024-04-23 14:12:06.888 java[58220:367135] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
>
> - After this change, the message is gone
>
> SwingSet2 % pwd
> SAPDevelop/github.com/dev-8318854-17/build/macosx-aarch64-server-slowdebug/images/jdk/demo/jfc/SwingSet2
>
> SwingSet2 % ~/SAPDevelop/github.com/dev-8318854-17/build/macosx-aarch64-server-slowdebug/images/jdk/bin/java -version
> openjdk version "17.0.12-internal" 2024-07-16
> OpenJDK Runtime Environment (slowdebug build 17.0.12-internal+0-adhoc.I048686.dev-8318854-17)
> OpenJDK 64-Bit Server VM (slowdebug build 17.0.12-internal+0-adhoc.I048686.dev-8318854-17, mixed mode, sharing)
>
> SwingSet2 % ~/SAPDevelop/github.com/dev-8318854-17/build/macosx-aarch64-server-slowdebug/images/jdk/bin/java -jar SwingSet2.jar
> 2024-04-23 14:15:07.444 java[58929:372270] name is : .SFNS-Regular
> 2024-04-23 14:15:07.444 java[58929:372270] family is : .AppleSystemUIFont
> 2024-04-23 14:15:07.444 java[58929:372270] name is : .SFNS-Bold
> 2024-04-23 14:15:07.444 java[58929:372270] family is : .AppleSystemUIFont
> 2024-04-23 14:15:07.629 java[58929:372270] nsFont-name is : .AppleSystemUIFont
> 2024-04-23 14:15:07.629 java[58929:372270] nsFont-family is : .AppleSystemUIFont
>
>
> Testing on Servers
> - Pipeline: **All checks have passed**
> - Testing Machine: SAP nightlies passed on `2024-04-17,19,20`
Thanks for the testing!
-------------
PR Comment: https://git.openjdk.org/jdk17u-dev/pull/2392#issuecomment-2076670198
More information about the jdk-updates-dev
mailing list