goku
06/04/2024, 4:12 AMbod
06/04/2024, 7:54 AMmbonnin
06/04/2024, 7:56 AMgenerateInputBuilders
help here?bod
06/04/2024, 7:58 AMgoku
06/04/2024, 8:24 AMjapicmp
didn’t report this as binary breaking change which surprised me. After digging deeper I learned that, because of type erasure it is actually binary compatible 🤷
We are increasing the usage of metalava
and my plan was to add it to the shared schema module for reporting purposes, and for versioning the generated types. However, this is not technically binary breaking change so it is an interesting one. (I wonder if metalava
would have reported this as it has more Kotlin specific logic)
For now, I think we will keep close eye on any changes to Input types in schema and don’t want to spend too much energy into this until we migrate to v4.bod
06/04/2024, 8:27 AMmbonnin
06/04/2024, 8:37 AMfun foo(input: Optional<Int>)
is
public static final fun toto (Lcom/apollographql/apollo3/api/Optional;)V
So BCV won’t dobod
06/04/2024, 8:38 AMmbonnin
06/04/2024, 8:44 AMmethod public static void foo(coffee.Optional<java.lang.Integer> bar);
Metalava would catch it though!