Skip to content

Conversation

@lordmilko
Copy link

@lordmilko lordmilko commented Jan 16, 2026

#146

In JavaToCSharpCli, Program.ConvertToCSharpFile attaches an event handler to the JavaConversionOptions.WarningEncountered event handler. However, this event handler is not removed after the ConvertToCSharpFile method finishes converting the file. As a result, when processing multiple files, every file you process will be added to the existing list of delegates attached to this event handler, resulting in all files processed so far receiving warnings that do not apply to them. This change updates ConvertToCSharpFile to ensure the event handler is unregistered prior to the method's return

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.

1 participant