Skip to content

Fix bug in file duplicate name handling logic #447

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

Merged
merged 1 commit into from
Apr 19, 2025

Conversation

wuseal
Copy link
Owner

@wuseal wuseal commented Apr 19, 2025

This PR fixes a bug in generateSingleKotlinClassFile where the method was checking the wrong variable in the duplicate filename detection loop. It was checking kotlinClass.name instead of kotlinClassForGenerateFile.name, which could potentially cause an infinite loop or improper handling of duplicate filenames.\n\nFixes error in log: https://jsontokotlin.sealwu.com:8443/static/2025-04-17/1744896753355.log

@wuseal wuseal added the bug fix For PR means this PR is used to fix bugs label Apr 19, 2025
@wuseal wuseal merged commit cf86389 into master Apr 19, 2025
2 checks passed
@wuseal wuseal deleted the fix-filename-duplication-bug branch April 19, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix For PR means this PR is used to fix bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant