> Fix port comparison in `java.net.URI::compareTo` and increase the test > coverage. > > `open/test/jdk/java/net/URI/Test.java` is improved in following aspects: > > - Old `gt(u, v)` was delegating to `lt(v, u)`. This left `u.compareTo(v) > 0` > path unchecked. > - `eqHashCompUni(u, v)` is introduced to verify all `equals()`, `hashCode()`, > `compareTo()` contracts. > - `eqHashCompBid(u, v)` is introduced to verify `eqHashCompUni(u, v)` > bidirectionally. > > --------- > - [X] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Volkan Yazici has updated the pull request incrementally with one additional commit since the last revision: Add xeq/xlt/xgt convenience methods ------------- Changes: - all: https://git.openjdk.org/jdk/pull/33232/files - new: https://git.openjdk.org/jdk/pull/33232/files/94633f1e..f6aac2fb Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=33232&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=33232&range=01-02 Stats: 64 lines in 1 file changed: 15 ins; 0 del; 49 mod Patch: https://git.openjdk.org/jdk/pull/33232.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/33232/head:pull/33232 PR: https://git.openjdk.org/jdk/pull/33232
