8291472: [macos] jawt 1.4 lock/unlock not supported

Reviewed-by: serb
This commit is contained in:
Alisen Chung 2024-06-18 21:31:16 +00:00
parent e965d70a74
commit 2ce85d9635

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -55,15 +55,14 @@ _JNI_IMPORT_OR_EXPORT_ jboolean JNICALL JAWT_GetAWT
awt->GetDrawingSurface = awt_GetDrawingSurface;
awt->FreeDrawingSurface = awt_FreeDrawingSurface;
if (awt->version >= JAWT_VERSION_1_4) {
awt->Lock = awt_Lock;
awt->Unlock = awt_Unlock;
awt->GetComponent = awt_GetComponent;
if (awt->version >= JAWT_VERSION_9) {
awt->CreateEmbeddedFrame = awt_CreateEmbeddedFrame;
awt->SetBounds = awt_SetBounds;
awt->SynthesizeWindowActivation = awt_SynthesizeWindowActivation;
}
awt->Lock = awt_Lock;
awt->Unlock = awt_Unlock;
awt->GetComponent = awt_GetComponent;
if (awt->version >= JAWT_VERSION_9) {
awt->CreateEmbeddedFrame = awt_CreateEmbeddedFrame;
awt->SetBounds = awt_SetBounds;
awt->SynthesizeWindowActivation = awt_SynthesizeWindowActivation;
}
return JNI_TRUE;