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

BREAKING: remove virtual method call from constructor #802

Conversation

laimis
Copy link
Contributor

@laimis laimis commented Apr 7, 2023

Continuation of fixes with virtual calls being made from constructors. The issue originally reported by SonarCloud scans: https://sonarcloud.io/project/issues?resolved=false&rules=csharpsquid%3AS1699&id=apache_lucenenet and referenced in this issue: #670

This one focuses on SnowballProgram. The pattern here is to create a private method that the constructor can use and virtual methods can use as well.

@laimis laimis requested a review from NightOwl888 April 7, 2023 18:24
Copy link
Contributor

@NightOwl888 NightOwl888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this will work 👍

@laimis laimis merged commit 72f51cc into apache:master Apr 7, 2023
@laimis laimis deleted the fix/virtual-calls-from-constructors-snowball-program branch April 7, 2023 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants