馃悰 [cloud_firestore] CollectionReferenceWeb uses implements instead of extends, makes CollectionReferencePlatform fragile #8095
Labels
platform: all
Issues / PRs which are for all platforms.
plugin: cloud_firestore
type: bug
Something isn't working
Bug report
Describe the bug
QueryPlatform.verifyExtends
does not callPlatformInterface.verifyToken
if the instance being verified is an instance ofCollectionReferencePlatform
. Instead it could call eitherQueryPlatform.verifyExtends
orCollectionReferencePlatform.verifyExtends
depending on the type of the instance.As a result,
CollectionReferenceWeb
is able to implementCollectionReferencePlatform
without extending it.Steps to reproduce
Steps to reproduce the behavior:
CollectionReferencePlatform
and release as a "minor" update.CollectionReferenceWeb
: method is not implemented.Expected behavior
When
_JsonQuery
callsQueryPlatform.verifyExtends
on aCollectionReferencePlatform
instance, the implementation ofQueryPlatform.verifyExtends
should callPlatformInterface.verifyToken
even if_delegate
is aCollectionReferencePlatform
.The text was updated successfully, but these errors were encountered: