[jdk17u-dev] Integrated: 8318854: [macos14] Running any AWT app prints Secure coding warning

Amos Shi ashi at openjdk.org
Thu Apr 25 15:14:45 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`

This pull request has now been integrated.

Changeset: 33241333
Author:    Amos Shi <ashi at openjdk.org>
URL:       https://git.openjdk.org/jdk17u-dev/commit/33241333bd16f6eeaa75257ec69cc8dc97e9e163
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/jdk17u-dev/pull/2392


More information about the jdk-updates-dev mailing list