RFR: JDK-8325743: test/jdk/java/nio/channels/unixdomain/SocketOptions.java enhance user name output in error case [v2]
Matthias Baesken
mbaesken at openjdk.org
Tue Feb 13 14:59:13 UTC 2024
> In case of a bad running LDAP we got this output from test test/jdk/java/nio/channels/unixdomain/SocketOptions.java
>
> java.lang.RuntimeException: wrong username
> at SocketOptions.testPeerCred(SocketOptions.java:75)
> at SocketOptions.main(SocketOptions.java:52)
> at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
> at java.base/java.lang.reflect.Method.invoke(Method.java:580)
> at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
> at java.base/java.lang.Thread.run(Thread.java:1583)
>
> It would be better to see the compared values (user name data we compare) and get them in the exception output.
Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
adjust output and header
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/17829/files
- new: https://git.openjdk.org/jdk/pull/17829/files/19e7a9b6..f7366970
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=17829&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=17829&range=00-01
Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/17829.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17829/head:pull/17829
PR: https://git.openjdk.org/jdk/pull/17829
More information about the nio-dev
mailing list