Commit caf0775
Fix UTF-8 JNI lookup tests for Android (#1398)
On Android, JNI FindClass throws ClassNotFoundException (not generic
JavaException) and GetMethodID throws NoSuchMethodError. The existing
string-based tests in JniTypeTest.cs already use #if __ANDROID__
conditionals for the same reason — apply the same pattern to the new
UTF-8 overload tests.
Fixes dotnet/android#10993
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent f1722d2 commit caf0775
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
172 | 176 | | |
173 | 177 | | |
174 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
175 | 182 | | |
| 183 | + | |
176 | 184 | | |
177 | 185 | | |
178 | 186 | | |
| |||
0 commit comments