Commit fec1166
[GTK] Look up the accessibility class once in os_custom.c
call_accessible_object_function() called FindClass for every accessibility
callback. The class is now looked up once and kept as a global reference,
primed when an accessible is registered, and a failed lookup clears the
pending exception instead of leaving it for the next JNI call.
FindClass resolves against the class loader of the calling Java method, so
it only finds AccessibleObject while the C code is entered from a JNI
native method.
Assisted-by: multiple AI agents and layers of automated tooling 🤖1 parent 7802111 commit fec1166
1 file changed
Lines changed: 23 additions & 1 deletion
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1040 | 1040 | | |
1041 | 1041 | | |
1042 | 1042 | | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1043 | 1060 | | |
1044 | 1061 | | |
1045 | 1062 | | |
| |||
1105 | 1122 | | |
1106 | 1123 | | |
1107 | 1124 | | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
1108 | 1130 | | |
1109 | 1131 | | |
1110 | 1132 | | |
| |||
2122 | 2144 | | |
2123 | 2145 | | |
2124 | 2146 | | |
2125 | | - | |
| 2147 | + | |
2126 | 2148 | | |
2127 | 2149 | | |
2128 | 2150 | | |
| |||
0 commit comments