Verified
Status Update
Comments
cl...@google.com <cl...@google.com>
cl...@google.com <cl...@google.com> #2
ap...@google.com <ap...@google.com> #3
Project: r8
Branch: main
commit 08cb38d05b4ac0644fe558aa7043483fdaebb0da
Author: Clément Béra <clementbera@google.com>
Date: Mon Jul 29 10:37:05 2024
Fix NPE rewriting with different catch handlers
Bug: b/354625682
Change-Id: Ice030042828a5c53c273cd328a0d7b0021562a78
M src/main/java/com/android/tools/r8/ir/conversion/passes/ThrowCatchOptimizer.java
M src/test/java/com/android/tools/r8/regress/B354625682Test.java
https://r8-review.googlesource.com/94441
Branch: main
commit 08cb38d05b4ac0644fe558aa7043483fdaebb0da
Author: Clément Béra <clementbera@google.com>
Date: Mon Jul 29 10:37:05 2024
Fix NPE rewriting with different catch handlers
Bug:
Change-Id: Ice030042828a5c53c273cd328a0d7b0021562a78
M src/main/java/com/android/tools/r8/ir/conversion/passes/ThrowCatchOptimizer.java
M src/test/java/com/android/tools/r8/regress/B354625682Test.java
ap...@google.com <ap...@google.com> #4
Project: r8
Branch: main
commit 8308e8ff8ef48a15db44c993ec0662bfde9c40ea
Author: Clément Béra <clementbera@google.com>
Date: Mon Jul 29 10:36:05 2024
Reproduction for NullPointerException in try/catch
Bug: b/354625682
Change-Id: I96559816c8d64af246465ec0942eb3c8c2f4d7de
A src/test/java/com/android/tools/r8/regress/B354625682Test.java
https://r8-review.googlesource.com/94440
Branch: main
commit 8308e8ff8ef48a15db44c993ec0662bfde9c40ea
Author: Clément Béra <clementbera@google.com>
Date: Mon Jul 29 10:36:05 2024
Reproduction for NullPointerException in try/catch
Bug:
Change-Id: I96559816c8d64af246465ec0942eb3c8c2f4d7de
A src/test/java/com/android/tools/r8/regress/B354625682Test.java
ap...@google.com <ap...@google.com> #5
Project: r8
Branch: 8.6
commit 3a640e6f0cde8ae89777c7545b7ce825284d3bfa
Author: Clément Béra <clementbera@google.com>
Date: Tue Jul 30 13:06:09 2024
Fix NPE rewriting with different catch handlers
Bug: b/354625682
Change-Id: Ice030042828a5c53c273cd328a0d7b0021562a78
M src/main/java/com/android/tools/r8/ir/conversion/passes/ThrowCatchOptimizer.java
M src/test/java/com/android/tools/r8/regress/B354625682Test.java
https://r8-review.googlesource.com/94524
Branch: 8.6
commit 3a640e6f0cde8ae89777c7545b7ce825284d3bfa
Author: Clément Béra <clementbera@google.com>
Date: Tue Jul 30 13:06:09 2024
Fix NPE rewriting with different catch handlers
Bug:
Change-Id: Ice030042828a5c53c273cd328a0d7b0021562a78
M src/main/java/com/android/tools/r8/ir/conversion/passes/ThrowCatchOptimizer.java
M src/test/java/com/android/tools/r8/regress/B354625682Test.java
ap...@google.com <ap...@google.com> #6
Project: r8
Branch: 8.6
commit 53314d002df5e98eb7824d37fe1a5780ccc80888
Author: Clément Béra <clementbera@google.com>
Date: Tue Jul 30 13:05:35 2024
Reproduction for NullPointerException in try/catch
Bug: b/354625682
Change-Id: I96559816c8d64af246465ec0942eb3c8c2f4d7de
A src/test/java/com/android/tools/r8/regress/B354625682Test.java
https://r8-review.googlesource.com/94502
Branch: 8.6
commit 53314d002df5e98eb7824d37fe1a5780ccc80888
Author: Clément Béra <clementbera@google.com>
Date: Tue Jul 30 13:05:35 2024
Reproduction for NullPointerException in try/catch
Bug:
Change-Id: I96559816c8d64af246465ec0942eb3c8c2f4d7de
A src/test/java/com/android/tools/r8/regress/B354625682Test.java
ap...@google.com <ap...@google.com> #7
Project: r8
Branch: 8.6
commit 3ec73ce1dbb45b2b43148cb32753ef1e9fada74d
Author: Clément Béra <clementbera@google.com>
Date: Tue Jul 30 13:07:49 2024
Version 8.6.16
Bug: b/354625682
Bug: b/354625681
Bug: b/343136777
Bug: b/353475583
Change-Id: I9f2ad5022503a910fad4e649cf5df8dbbb616316
M src/main/java/com/android/tools/r8/Version.java
https://r8-review.googlesource.com/94503
Branch: 8.6
commit 3ec73ce1dbb45b2b43148cb32753ef1e9fada74d
Author: Clément Béra <clementbera@google.com>
Date: Tue Jul 30 13:07:49 2024
Version 8.6.16
Bug:
Bug:
Bug:
Bug:
Change-Id: I9f2ad5022503a910fad4e649cf5df8dbbb616316
M src/main/java/com/android/tools/r8/Version.java
cl...@google.com <cl...@google.com>
ap...@google.com <ap...@google.com> #8
Project: r8
Branch: 8.5
commit d360da0f12e43c2e9798aaa1bdf3443cb7661e51
Author: Clément Béra <clementbera@google.com>
Date: Tue Jul 30 13:26:24 2024
Version 8.5.34
Bug: b/354625682
Bug: b/354625681
Bug: b/343136777
Bug: b/353475583
Change-Id: Ife8945c8f8ed416af360c78e5fc4267bba97b967
M src/main/java/com/android/tools/r8/Version.java
https://r8-review.googlesource.com/94564
Branch: 8.5
commit d360da0f12e43c2e9798aaa1bdf3443cb7661e51
Author: Clément Béra <clementbera@google.com>
Date: Tue Jul 30 13:26:24 2024
Version 8.5.34
Bug:
Bug:
Bug:
Bug:
Change-Id: Ife8945c8f8ed416af360c78e5fc4267bba97b967
M src/main/java/com/android/tools/r8/Version.java
ap...@google.com <ap...@google.com> #9
Project: r8
Branch: 8.5
commit aee149373e928636fadcbd904ac8f427f31b3ca4
Author: Clément Béra <clementbera@google.com>
Date: Tue Jul 30 13:25:22 2024
Fix NPE rewriting with different catch handlers
Bug: b/354625682
Change-Id: Ice030042828a5c53c273cd328a0d7b0021562a78
M src/main/java/com/android/tools/r8/ir/conversion/passes/ThrowCatchOptimizer.java
M src/test/java/com/android/tools/r8/regress/B354625682Test.java
https://r8-review.googlesource.com/94563
Branch: 8.5
commit aee149373e928636fadcbd904ac8f427f31b3ca4
Author: Clément Béra <clementbera@google.com>
Date: Tue Jul 30 13:25:22 2024
Fix NPE rewriting with different catch handlers
Bug:
Change-Id: Ice030042828a5c53c273cd328a0d7b0021562a78
M src/main/java/com/android/tools/r8/ir/conversion/passes/ThrowCatchOptimizer.java
M src/test/java/com/android/tools/r8/regress/B354625682Test.java
ap...@google.com <ap...@google.com> #10
Project: r8
Branch: 8.5
commit 52d58c57927396788d58e5be18eb534c58cdaff3
Author: Clément Béra <clementbera@google.com>
Date: Tue Jul 30 13:24:54 2024
Reproduction for NullPointerException in try/catch
Bug: b/354625682
Change-Id: I96559816c8d64af246465ec0942eb3c8c2f4d7de
A src/test/java/com/android/tools/r8/regress/B354625682Test.java
https://r8-review.googlesource.com/94562
Branch: 8.5
commit 52d58c57927396788d58e5be18eb534c58cdaff3
Author: Clément Béra <clementbera@google.com>
Date: Tue Jul 30 13:24:54 2024
Reproduction for NullPointerException in try/catch
Bug:
Change-Id: I96559816c8d64af246465ec0942eb3c8c2f4d7de
A src/test/java/com/android/tools/r8/regress/B354625682Test.java
an...@google.com <an...@google.com> #11
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Koala Feature Drop | 2024.1.2 RC 1
- Android Gradle Plugin 8.6.0-rc01
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
an...@google.com <an...@google.com> #12
The fixes for this issue are now also available in:
- Android Studio Koala | 2024.1.1 Patch 2
- Android Gradle Plugin 8.5.2
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Description
Versions
Description
When processing jar files to generate dex files using D8 and R8 respectively, the resulting dex files behave inconsistently during execution. The dex file generated by R8 crashes upon execution with the error "Exception in thread 'main' java.lang.NullPointerException," which should actually be caught. In contrast, the dex file generated by D8 executes normally. We suspect this is an issue with R8.
Step to Reproduce
Expected Result(d8 dex output)
Actual Result(r8 dex output)
Testcase Source Code
rules.pro