86 }
87
88 #define EXCEPTION_CHECK_VOID(situationDescription) \
89 if (exception = jniEnv->ExceptionOccurred()) { \
90 PrintDebugString("\r\n *** Exception occured while doing: %s", situationDescription); \
91 jniEnv->ExceptionDescribe(); \
92 jniEnv->ExceptionClear(); \
93 return; \
94 }
95
96 /**
97 * Make all of the getClass() & getMethod() calls
98 *
99 */
100 BOOL
101 AccessBridgeJavaEntryPoints::BuildJavaEntryPoints() {
102 jclass localClassRef;
103
104 PrintDebugString("Calling BuildJavaEntryPoints():");
105
106 FIND_CLASS(bridgeClass, "com/sun/java/accessibility/AccessBridge");
107
108 // ------- general methods
109
110 // GetMethodID(decrementReference)
111 FIND_METHOD(decrementReferenceMethod, bridgeClass,
112 "decrementReference",
113 "(Ljava/lang/Object;)V");
114
115 // GetMethodID(getJavaVersionPropertyMethod)
116 FIND_METHOD(getJavaVersionPropertyMethod, bridgeClass,
117 "getJavaVersionProperty",
118 "()Ljava/lang/String;");
119
120 // ------- Window methods
121
122 // GetMethodID(isJavaWindow)
123 FIND_METHOD(isJavaWindowMethod, bridgeClass,
124 "isJavaWindow",
125 "(I)Z");
126
|
86 }
87
88 #define EXCEPTION_CHECK_VOID(situationDescription) \
89 if (exception = jniEnv->ExceptionOccurred()) { \
90 PrintDebugString("\r\n *** Exception occured while doing: %s", situationDescription); \
91 jniEnv->ExceptionDescribe(); \
92 jniEnv->ExceptionClear(); \
93 return; \
94 }
95
96 /**
97 * Make all of the getClass() & getMethod() calls
98 *
99 */
100 BOOL
101 AccessBridgeJavaEntryPoints::BuildJavaEntryPoints() {
102 jclass localClassRef;
103
104 PrintDebugString("Calling BuildJavaEntryPoints():");
105
106 FIND_CLASS(bridgeClass, "com/sun/java/accessibility/internal/AccessBridge");
107
108 // ------- general methods
109
110 // GetMethodID(decrementReference)
111 FIND_METHOD(decrementReferenceMethod, bridgeClass,
112 "decrementReference",
113 "(Ljava/lang/Object;)V");
114
115 // GetMethodID(getJavaVersionPropertyMethod)
116 FIND_METHOD(getJavaVersionPropertyMethod, bridgeClass,
117 "getJavaVersionProperty",
118 "()Ljava/lang/String;");
119
120 // ------- Window methods
121
122 // GetMethodID(isJavaWindow)
123 FIND_METHOD(isJavaWindowMethod, bridgeClass,
124 "isJavaWindow",
125 "(I)Z");
126
|