Assigned
Status Update
Comments
sg...@google.com <sg...@google.com>
ap...@google.com <ap...@google.com> #2
Androidx.activity actually doesn't do anything with those APIs and this behavior comes from the framework. Moving it to that component.
Description
Versions
Description
The testcase is a piece of code that appends content to a null string. When processed with D8 and executed using ART, ART correctly reports a java.lang.NullPointerException, consistent with the behavior when executed directly using the JVM. However, after processing the code with R8 to generate a dex file, no error is reported when executed on ART. Upon inspecting the generated dex file using JADX, we found that R8 completely removed the function's content, leaving the body of the main function empty. Could this be considered an issue with R8?
Step to Reproduce
JVM Result
D8+ART Result
R8+ART Result
Testcase Source Code
rules.pro