Skip to content

chore: remove KT-69327 workaround - #27

Closed
IRus wants to merge 2 commits into
mainfrom
remove-kt-69327-workaround
Closed

chore: remove KT-69327 workaround#27
IRus wants to merge 2 commits into
mainfrom
remove-kt-69327-workaround

Conversation

@IRus

@IRus IRus commented Aug 30, 2026

Copy link
Copy Markdown
Member

KT-69327 (Kotlin/Native floating point parser throwing IndexOutOfBoundsException instead of NumberFormatException) is fixed. The workaround is no longer needed on Kotlin 2.4.10.

Changes

  • YamlNode.kt — removed both catch (e: IndexOutOfBoundsException) blocks from toFloatOrNull and toDoubleOrNull
  • YamlScalarTest.kt — removed the KotlinTarget.NATIVE branch that disabled the 1e- case
  • Unused catch parameters renamed e -> _

Verification

586 tests pass, 0 ignored, on: macosArm64, iosSimulatorArm64, jvm, jsNode, wasmJsNode.

linuxX64, linuxArm64 and mingwX64 cannot run on a macOS host — CI covers those.

Note: --tests '*YamlScalarTest*' does not filter Kotest on Native (the spec is silently skipped). Run the full target task.

🤖 Generated with Claude Code

IRus and others added 2 commits August 30, 2026 20:21
The Kotlin/Native floating point parser bug is fixed as of Kotlin 2.4.10,
so String.toFloat/toDouble no longer throw IndexOutOfBoundsException for
inputs like "1e-".

- Drop both catch (IndexOutOfBoundsException) blocks in YamlScalar
- Re-enable the "1e-" case in YamlScalarTest on Native
- Use _ for unused catch parameters

Verified: 586 tests pass on macosArm64, iosSimulatorArm64, jvm, jsNode
and wasmJsNode.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@IRus IRus changed the title Remove KT-69327 workaround chore: remove KT-69327 workaround Aug 30, 2026
@IRus IRus closed this Aug 30, 2026
@IRus
IRus deleted the remove-kt-69327-workaround branch August 30, 2026 18:13
@IRus

IRus commented Aug 30, 2026

Copy link
Copy Markdown
Member Author

Merged manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant