Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid possible comparison contract violation (netty#9883)
Motivation: The current implementation causes IllegalArgumetExceptions to be thrown on Java 11. The current implementation would violate comparison contract for two cookies C1 and C2 with same path length, since C1 < C2 and C2 < C1. Returning 0 (equality) does not since C1 == C2 and C2 == C1. See netty#9881 Modification: Return equality instead of less than on same path length. Result: Fixes netty#9881.
- Loading branch information