Repository navigation
Commit 3f56f9c
committed
fix(runtime): keep a constructed instance's recorded class
CallJSMethodNative replaced the class recorded for a JS-extended
instance, on the Java constructor's call into JS, with
env.GetObjectClass(obj): a JNI local ref, freed when the call returned,
to com.tns.Runtime's class (obj is the receiver of the native method,
not the instance). The error a failed Java object lookup reports names
that class, so it named com.tns.Runtime or read a dead reference.
Registration already records the instance's class as a global ref.1 parent a121063 commit 3f56f9c
1 file changed
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | 663 | | |
671 | 664 | | |
672 | 665 | | |
| |||
0 commit comments