Commit 83a50be
committed
Fix UCO constructor wrappers to include full JNI parameter list
The UCO constructor wrapper signature must match the JNI native method
signature (jnienv + self + constructor params) for correct ABI.
Previously it only accepted (IntPtr, IntPtr), causing a calling convention
mismatch when JNI dispatches constructors with parameters.
The body still calls ActivateInstance(self, typeof(T)) — the constructor
params are consumed but not forwarded, since peer activation uses the
(IntPtr, JniHandleOwnership) activation ctor, not the user constructor.1 parent 0c5365e commit 83a50be
File tree
3 files changed
+29
-11
lines changed- src/Microsoft.Android.Sdk.TrimmableTypeMap/Generator
- Model
- tests/Microsoft.Android.Sdk.TrimmableTypeMap.Tests/Generator
3 files changed
+29
-11
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| |||
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
501 | 505 | | |
502 | 506 | | |
503 | 507 | | |
504 | | - | |
| 508 | + | |
505 | 509 | | |
506 | 510 | | |
507 | | - | |
508 | | - | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
509 | 515 | | |
510 | 516 | | |
511 | 517 | | |
| |||
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1550 | 1550 | | |
1551 | 1551 | | |
1552 | 1552 | | |
1553 | | - | |
| 1553 | + | |
1554 | 1554 | | |
1555 | 1555 | | |
1556 | 1556 | | |
| |||
1574 | 1574 | | |
1575 | 1575 | | |
1576 | 1576 | | |
| 1577 | + | |
| 1578 | + | |
1577 | 1579 | | |
1578 | | - | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
1579 | 1589 | | |
1580 | 1590 | | |
1581 | 1591 | | |
1582 | | - | |
| 1592 | + | |
1583 | 1593 | | |
1584 | 1594 | | |
1585 | 1595 | | |
| |||
0 commit comments