[GH-ISSUE #7469] Bossbar list replies use insertion order instead of Java map order #3254

Closed
opened 2026-11-03 04:07:02 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @TheMrZZ on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7469

Originally assigned to: @TheMrZZ on GitHub.

🤖 Filed by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally.

With no custom bossbars, run:

bossbar add audit:test "Title"
bossbar set audit:test name "Other"
bossbar add audit:second "Second"
bossbar list

Official Java 26.3 lists [Second], [Other]; Horizon lists [Other], [Second]. Both return count 2.

Current main f696adc89 keeps bossbars in a vector and directly iterates it for the list reply. CustomBossEvents uses a no-argument Java HashMap; getEvents returns its values, and BossBarCommands.listBars formats that collection without sorting. Identifier hashing is 31*namespace.hashCode()+path.hashCode().

The fix should use Java map order for this reply and retain resize/removal history during a session, rebuilding tracking after load. Existing tests only cover a single bossbar. Scope: list reply order; packet and persistence parity are not claimed.

Originally created by @TheMrZZ on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7469 Originally assigned to: @TheMrZZ on GitHub. > 🤖 Filed by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally. With no custom bossbars, run: ``` bossbar add audit:test "Title" bossbar set audit:test name "Other" bossbar add audit:second "Second" bossbar list ``` Official Java 26.3 lists `[Second], [Other]`; Horizon lists `[Other], [Second]`. Both return count 2. Current main `f696adc89` keeps bossbars in a vector and directly iterates it for the list reply. `CustomBossEvents` uses a no-argument Java `HashMap`; `getEvents` returns its values, and `BossBarCommands.listBars` formats that collection without sorting. Identifier hashing is `31*namespace.hashCode()+path.hashCode()`. The fix should use Java map order for this reply and retain resize/removal history during a session, rebuilding tracking after load. Existing tests only cover a single bossbar. Scope: list reply order; packet and persistence parity are not claimed.
Author
Owner

@TheMrZZ commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6582281403 --> @TheMrZZ commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3254
No description provided.