Closed wuyang102 closed 5 years ago
Isn't this a Room bug then?
Isn't this a Room bug then?
No. The abstract medium class start with $ symbol is created by this library.
Any extension will create that type (and potentially more) and it's
perfectly valid since it sits between the AutoValue_
-prefixed type and
the user-written type. Please file a Room bug.
On Tue, Oct 16, 2018 at 10:06 AM wuyang102 notifications@github.com wrote:
Isn't this a Room bug then?
No. The abstract medium class start with $ symbol is created by this library.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/rharter/auto-value-gson/issues/187#issuecomment-430251157, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEEETUf35a1euJ4bDkiwWOXGCGYMfnqks5ulef6gaJpZM4XeYOn .
This is how the architecture of AutoValue is intended to work.
Room should be using the builder, creating their own implementation of the abstract class, or using the package private constructor if it exists to comply with the first tenet of AutoValue, that the classes be API-invisible (callers cannot become dependent on your choice to use it).
If Room doesn't work with this extension, please file a bug with Room, as this extension works as AutoValue extensions are intended to work..
The room architecture component has support auto value now, but it can not work this library. There will be a medium class like $AutoValue_xxx.java generated by this library if the original abstract class has a static method named typeAdpter.