|
1 | 1 | /* |
2 | | - * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 | 4 | * |
5 | 5 | * This code is free software; you can redistribute it and/or modify it |
@@ -62,7 +62,8 @@ - (NSString *)getDescription |
62 | 62 | { |
63 | 63 | JNIEnv* env = [ThreadUtilities getJNIEnv]; |
64 | 64 | DECLARE_CLASS_RETURN(sjc_CAccessibility, "sun/lwawt/macosx/CAccessibility", nil); |
65 | | - DECLARE_METHOD_RETURN(jm_getAccessibleActionDescription, sjc_CAccessibility, "getAccessibleActionDescription", |
| 65 | + DECLARE_STATIC_METHOD_RETURN(jm_getAccessibleActionDescription, sjc_CAccessibility, |
| 66 | + "getAccessibleActionDescription", |
66 | 67 | "(Ljavax/accessibility/AccessibleAction;ILjava/awt/Component;)Ljava/lang/String;", nil); |
67 | 68 |
|
68 | 69 | /* WeakGlobalRefs can be cleared at any time, so first get strong local refs and use those */ |
@@ -95,7 +96,7 @@ - (void)perform |
95 | 96 | { |
96 | 97 | JNIEnv* env = [ThreadUtilities getJNIEnv]; |
97 | 98 | DECLARE_CLASS(sjc_CAccessibility, "sun/lwawt/macosx/CAccessibility"); |
98 | | - DECLARE_METHOD(jm_doAccessibleAction, sjc_CAccessibility, "doAccessibleAction", |
| 99 | + DECLARE_STATIC_METHOD(jm_doAccessibleAction, sjc_CAccessibility, "doAccessibleAction", |
99 | 100 | "(Ljavax/accessibility/AccessibleAction;ILjava/awt/Component;)V"); |
100 | 101 |
|
101 | 102 | (*env)->CallStaticVoidMethod(env, sjc_CAccessibility, jm_doAccessibleAction, |
|
0 commit comments