OpenJDK 21 Build on MacOS Sonoma throwing WARNING: Secure coding is automatically enabled
erik.joelsson at oracle.com
erik.joelsson at oracle.com
Mon Oct 30 18:22:01 UTC 2023
On 10/30/23 10:05, Philip Race wrote:
> It is possible to use Xcode 12 on macOS14.
> Our internal build system manages to make this work.
> Don't ask me for the details, because I don't know them very well.
Internally we use macOS 13.x and Xcode 14.3.1 to build JDK 22, and
macOS 12.x and Xcode 12.4 to build JDK 21.
See https://wiki.openjdk.org/display/Build/Supported+Build+Platforms for
a mostly up to date set of build platforms and toolchains.
/Erik
> I think you may have to create a (free) Apple developer a/c to be able
> to get the
> older Xcodes. That's step 1.
>
> But you are going to have to find a way because currently there is no
> other solution.
> At least none I can think of.
>
> And no, it is nothing to do with deprecation.
>
> -phil.
>
> On 10/30/23 7:07 AM, Asif Ikram wrote:
>> Dear Philip
>>
>> Thanks for your response and directions.
>>
>> I guess it is not possible to use Xcode 12.x on MacOS14, because it
>> asks for the latest version of Xcode.
>>
>> I used the OpenJDk20 binary and OpenJDK21 binary to create the build
>> from OpenJDK21+35 source code, but I'm still facing the same problem
>> with my build.
>> Is it MacOS14 and ist AppKit causing the issue? Apple has
>> deprecated some native methods in MacOS14.
>> https://developer.apple.com/documentation/macos-release-notes/appkit-release-notes-for-macos-14
>>
>> best regards
>>
>> Asif
>>
>>
>> On Sat, Oct 28, 2023 at 1:20 AM Philip Race <philip.race at oracle.com>
>> wrote:
>>
>> This is due you using a newer compiler than the "official" one
>> used by OpenJDK for JDK21
>> We will have a fix to silence it for JDK 22, but that won't help
>> your JDK 21 build.
>> You'll need to use Xcode 12.x instead of whatever you are using.
>>
>> -phil.
>>
>> On 10/24/23 9:57 AM, Asif Ikram wrote:
>>>
>>> Dear Team
>>>
>>> Can you please help me with this?
>>>
>>>
>>> *2023-10-24 12:16:57.027 java[97952:198365] WARNING: Secure
>>> coding is automatically enabled for restorable state! However,
>>> not on all supported macOS versions of this application. Opt-in
>>> to secure coding explicitly by implementing
>>> NSApplicationDelegate.applicationSupportsSecureRestorableState:.*
>>>
>>>
>>> I have created OpenJDK 21+35 Build on MacOS 14 Sonoma.
>>> I am not able to complete a few AWT tests in JCK21 (JT Harness
>>> Runtime).
>>>
>>> Best regards
>>> Asif
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20231030/8933baac/attachment-0001.htm>
More information about the build-dev
mailing list