Skip to content

Fix bug in file duplicate name handling logic#447

Merged
wuseal merged 1 commit intomasterfrom
fix-filename-duplication-bug
Apr 19, 2025
Merged

Fix bug in file duplicate name handling logic#447
wuseal merged 1 commit intomasterfrom
fix-filename-duplication-bug

Conversation

@wuseal
Copy link
Copy Markdown
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