馃悰 [firebase_database] DatabaseReferenceWeb uses implements instead of extends; makes DatabaseReferencePlatform fragile #8096
Labels
platform: all
Issues / PRs which are for all platforms.
plugin: database
type: bug
Something isn't working
Bug report
Describe the bug
In firebase_database,
QueryPlatform
has a privatestatic final Object _token = Object();
. However,Query
does not callverifyExtends
. By constrast, the analogous class in Firestore does callverifyToken
. Also, the other platform classes in this package callverifyToken
.As a result,
DatabaseReferenceWeb
is able to useimplements
instead ofextends
. This makes the platform interface fragile.Steps to reproduce
Steps to reproduce the behavior:
DatabaseReferencePlatform
(a "minor" update).DatabaseReferenceWeb
because the method is not implemented.Expected behavior
The implementation of
Query
should callverifyToken
on the instance.See also #8095.
The text was updated successfully, but these errors were encountered: