Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrects inheritance of DataScopeContainer class to BaseScopeContainer #5

Conversation

WebMad
Copy link
Contributor

@WebMad WebMad commented Dec 16, 2024

Заметил, что в DataScopeContainer неправильное наследование, из-за этого, если использовать в initializeQueue геттер data, то в контроллере ScopeContainer будет выкидываться исключение, так как порядок вызовов будет такой:

_initializeQueueNoDuplications
this.data = data;
_initializeQueueNoDuplications

Получается, что функция _initializeQueueNoDuplications будет вызвана дважды, ну и состояние будет неправильное.

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=ru

@kltsv kltsv self-requested a review December 16, 2024 09:47
@kltsv kltsv added the bug Something isn't working label Dec 16, 2024
@kltsv kltsv merged commit ebe685a into yandex:main Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants