Fixed
Status Update
Comments
jv...@google.com <jv...@google.com>
an...@google.com <an...@google.com>
an...@google.com <an...@google.com> #2
fwiw: I've seen (variations of) this very small difference in various apps:
│ │ ├── j$/util/Collection$-EL.class
│ │ │ ├── procyon -ec {}
│ │ │ │ @@ -1,14 +1,14 @@
│ │ │ │
│ │ │ │ package j$.util;
│ │ │ │
│ │ │ │ import java.util.Comparator;
│ │ │ │ import java.util.Set;
│ │ │ │ -import java.util.List;
│ │ │ │ import java.util.SortedSet;
│ │ │ │ +import java.util.List;
│ │ │ │ import java.util.LinkedHashSet;
│ │ │ │ import java.util.Iterator;
│ │ │ │ import java.util.Objects;
│ │ │ │ import j$.util.function.Consumer;
│ │ │ │ import java.util.Collection;
│ │ │ │ import java.util.OptionalLong;
│ │ │ │ import java.util.OptionalInt;
│ │ │ │ @@ -142,20 +142,20 @@
│ │ │ │ return ((j$.util.Collection)collection).spliterator();
│ │ │ │ }
│ │ │ │ if (collection instanceof LinkedHashSet) {
│ │ │ │ final LinkedHashSet obj = (LinkedHashSet)collection;
│ │ │ │ Objects.requireNonNull(obj);
│ │ │ │ return (Spliterator)new Spliterators$IteratorSpliterator((Collection)obj, 17);
│ │ │ │ }
│ │ │ │ + if (collection instanceof List) {
│ │ │ │ + return List$-CC.$default$spliterator((List)collection);
│ │ │ │ + }
│ │ │ │ if (collection instanceof SortedSet) {
│ │ │ │ final SortedSet set = (SortedSet)collection;
│ │ │ │ return (Spliterator)new SortedSet$1(set, (Collection)set, 21);
│ │ │ │ }
│ │ │ │ - if (collection instanceof List) {
│ │ │ │ - return List$-CC.$default$spliterator((List)collection);
│ │ │ │ - }
│ │ │ │ if (collection instanceof Set) {
│ │ │ │ return Set$-CC.$default$spliterator((Set)(SortedSet)collection);
│ │ │ │ }
│ │ │ │ return Collection$-CC.$default$spliterator(collection);
│ │ │ │ }
│ │ │ │ }
an...@google.com <an...@google.com> #3
Hey Clement, do you have any ideas on producing different dex files from build to build?
Description
STEPS TO REPRODUCE:
1. Install Android Studio 2022.3.1 Patch 1
2. Clone
3. Build it
4. Navigate to ServerSettingsFragment class
5. Observe that ServerSettingsFragmentDirections is red
Only safeargs classes are impacted (other generated classes like viewbindings are resolved without issues), and for me it is reproducible on two different machines - M1 macbook and PC with Fedora Linux.
"Repair IDE" (following it to the end) doesn't fix this, and neither does "Sync with Gradle".
------------------
Studio Build: Build #AI-223.8836.35.2231.10671973, built on August 17, 2023
Version of Gradle Plugin: 8.1.1
Version of Gradle: 8.3
Version of Java: 17.0.6
OS: I reproduced it both on macOS and Fedora Linux
Version of androidx.navigation.safeargs.kotlin Gradle plugin: 2.7.2