Commit 9ee49e1
[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 e43bd8b commit 9ee49e1
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 | |
|---|---|---|---|
| |||
1548 | 1548 | | |
1549 | 1549 | | |
1550 | 1550 | | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
1551 | 1581 | | |
1552 | 1582 | | |
1553 | 1583 | | |
| |||
0 commit comments