Commit 40d4e55
committed
[[ Bug 22996 ]] Fix JNI error calling methods that trigger callbacks
This patch fixes an issue where calling a java method results in engine
callbacks that change the value of the `s_env` JNIEnv variable causing
it to be incorrect for the current thread when the method returns. The fix
restores the correct environment for the current thread.1 parent 10e79b4 commit 40d4e55
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1714 | 1714 | | |
1715 | 1715 | | |
1716 | 1716 | | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
1717 | 1722 | | |
1718 | 1723 | | |
1719 | 1724 | | |
| |||
0 commit comments