Commit 78a37fc
committed
fix: use the validStart null flag in TransactionId.compareTo
The validStart null-handling branch returned based on thisAccountIdIsNull instead of thisStartIsNull. Since that branch is only reachable when both ids agree on accountId nullness, the comparison returned the same sign in both directions, violating the Comparable antisymmetry and transitivity contracts.
Fixes #27401 parent f371599 commit 78a37fc
2 files changed
Lines changed: 19 additions & 1 deletion
File tree
- sdk/src
- main/java/com/hedera/hashgraph/sdk
- test/java/com/hedera/hashgraph/sdk
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
532 | | - | |
| 532 | + | |
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
189 | 207 | | |
0 commit comments