Skip to content

Commit 2741b08

Browse files
committed
fixed bug where local references were not being deleted
1 parent a454bf4 commit 2741b08

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# jnitrace Change Log
22

3+
## 3.0.7
4+
- Fixed a bug where local JNI references were not being deleted. The result was reuse by the runtime of reference values led to other arguments/return values being incorrectly named
5+
36
## 3.0.6
47
- Bumped versions of all JavaScript dependencies to latest and fixed linter errors
58
- Bug fix where all JavaVM calls were being labeled as JNIEnv calls

jnitrace/src/transport/data_transport.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,9 @@ class DataTransport {
327327
this.updateFieldIDs(data);
328328
} else if (["FindClass", "DefineClass"].includes(name)) {
329329
this.updateClassIDs(data);
330-
} else if (name.startsWith("New") && name.endsWith("GlobalRef")) {
330+
} else if (name.startsWith("New") && name.endsWith("Ref")) {
331331
this.updateObjectIDsFromRefs(data, true);
332-
} else if (name.startsWith("Delete") && name.endsWith("GlobalRef")) {
332+
} else if (name.startsWith("Delete") && name.endsWith("Ref")) {
333333
this.updateObjectIDsFromRefs(data, false);
334334
} else if (name === "GetObjectClass") {
335335
this.updateObjectIDsFromClass(data);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jnitrace",
3-
"version": "3.0.6",
3+
"version": "3.0.7",
44
"description": "A tool for tracing use of the JNI in Android apps",
55
"private": true,
66
"main": "jnitrace/src/main.js",

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setup(
1010
name='jnitrace',
11-
version='3.0.6',
11+
version='3.0.7',
1212
description='A tool for tracing use of the JNI in Android apps',
1313
long_description=long_description,
1414
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)