Commit 3d0d593
[Tests] Add NativeAOT regression test for R8-kept runtime ACWs
Adds NativeAotKeepsRuntimeAcwJavaTypesUnderR8, which builds a Release NativeAOT
app with r8 and asserts that classes.dex still contains the runtime
UncaughtExceptionMarshaler ACW kept by the generated NativeAOT ProGuard rules.
If those keep rules are missing, R8 tree-shakes the runtime JCWs and the app
crashes at startup inside JavaInteropRuntime.init.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 251663a commit 3d0d593
1 file changed
Lines changed: 30 additions & 0 deletions
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1536 | 1536 | | |
1537 | 1537 | | |
1538 | 1538 | | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
1539 | 1569 | | |
1540 | 1570 | | |
1541 | 1571 | | |
| |||
0 commit comments