Skip to content

Port most remaining java Classes to Kotlin#202

Merged
bailuk merged 17 commits intostagefrom
dev/more_kotlin
Feb 23, 2026
Merged

Port most remaining java Classes to Kotlin#202
bailuk merged 17 commits intostagefrom
dev/more_kotlin

Conversation

@bailuk
Copy link
Owner

@bailuk bailuk commented Feb 23, 2026

No description provided.

@bailuk bailuk merged commit 6d5269c into stage Feb 23, 2026
2 checks passed
MaxKellermann added a commit to MaxKellermann/AAT that referenced this pull request Feb 25, 2026
The Java-to-Kotlin conversion in PR bailuk#202 changed the primer node
getNext() overrides from dynamic methods into stored properties
(override var next = ...), which captured the list's first element
once at construction time. When GpxListWriter creates the iterator
on an initially empty list, the primer's next stays null permanently,
so writeNewPoints() never iterates and no points are written to the
GPX log file.

Fix by using computed properties that read the current list head on
every access, matching the original Java behavior.

Regression introduced in bailuk#202
bailuk pushed a commit that referenced this pull request Mar 1, 2026
The Java-to-Kotlin conversion in PR #202 changed the primer node
getNext() overrides from dynamic methods into stored properties
(override var next = ...), which captured the list's first element
once at construction time. When GpxListWriter creates the iterator
on an initially empty list, the primer's next stays null permanently,
so writeNewPoints() never iterates and no points are written to the
GPX log file.

Fix by using computed properties that read the current list head on
every access, matching the original Java behavior.

Regression introduced in #202
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