entry.list
in LinkedList
#50937
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-collection
type-enhancement
A request for a change that isn't a bug
LinkedList uses
entry.list
for accessing LinkedList containing it in functions like_insertBefore()
orcontains()
.But It makes overriding
get list
in LinkedListEntry impossible. If you overrideget list
throws an exception, just callingadd()
also throws the exception.I found this problem when I make a subclass of LinkedListEntry prohibiting access to the list for logic safety.
So, I carefully suggest changing
entry.list
toentry._list
like the other parts inremove()
or_unlink()
.thanks.
The text was updated successfully, but these errors were encountered: