Skip to content

JavaConversionOptions.StaticUsingEnumNames Reused Across Multiple Files #148

@lordmilko

Description

@lordmilko

When a static using is discovered, it is added to JavaConversionOptions.StaticUsingEnumNames. However, after processing a file, this value is never cleared. As such, static usings continue to accumulate, and each successive file contains more and more static usings that do not apply do it.

Recommended fix is to wrap JavaToCSharpConverter.ConvertText in a try/finally so it is not the caller's responsibility to clean something up they weren't responsible for modifying

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions