Commit c96df60
committed
Possible repro for #455
See #455 for overall scenario. These minimal-ish changes cause the
following stack trace if you launch the basic app and click on the
"fizz" button.
```
05-26 13:32:58.269 1150 1178 E ActivityControllerCore: java.lang.NoSuchMethodError: No virtual method convert(Ljava/time/Duration;)J in class Ljava/util/concurrent/TimeUnit; or its super cl
asses (declaration of 'java.util.concurrent.TimeUnit' appears in /apex/com.android.art/javalib/core-oj.jar)
05-26 13:32:58.269 1150 1178 E ActivityControllerCore: at com.basicapp.basicdep.BasicDep.toLong(Unknown Source:4)
05-26 13:32:58.269 1150 1178 E ActivityControllerCore: at com.basicapp.basicdep.BasicDep.toString(Unknown Source:0)
05-26 13:32:58.269 1150 1178 E ActivityControllerCore: at com.basicapp.BasicActivity$1.onClick(Unknown Source:35)
05-26 13:32:58.269 1150 1178 E ActivityControllerCore: at android.view.View.performClick(View.java:7448)
05-26 13:32:58.269 1150 1178 E ActivityControllerCore: at android.view.View.performClickInternal(View.java:7425)
05-26 13:32:58.269 1150 1178 E ActivityControllerCore: at android.view.View.access$3600(View.java:810)
05-26 13:32:58.269 1150 1178 E ActivityControllerCore: at android.view.View$PerformClick.run(View.java:28305)
05-26 13:32:58.269 1150 1178 E ActivityControllerCore: at android.os.Handler.handleCallback(Handler.java:938)
05-26 13:32:58.269 1150 1178 E ActivityControllerCore: at android.os.Handler.dispatchMessage(Handler.java:99)
05-26 13:32:58.269 1150 1178 E ActivityControllerCore: at android.os.Looper.loop(Looper.java:223)
05-26 13:32:58.269 1150 1178 E ActivityControllerCore: at android.app.ActivityThread.main(ActivityThread.java:7656)
05-26 13:32:58.269 1150 1178 E ActivityControllerCore: at java.lang.reflect.Method.invoke(Native Method)
05-26 13:32:58.269 1150 1178 E ActivityControllerCore: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
05-26 13:32:58.269 1150 1178 E ActivityControllerCore: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
```
Repro command:
```
bazelisk build java/com/basicapp:basic_app --nodesugar_java8_libs && \
adb install bazel-bin/java/com/basicapp/basic_app.apk && \
adb logcat
```1 parent 71ea32a commit c96df60
3 files changed
Lines changed: 44 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
7 | 14 | | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
11 | 18 | | |
| 19 | + | |
12 | 20 | | |
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
19 | 34 | | |
20 | 35 | | |
21 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments