RFR: 8215916: The failure reason of an optional JAAS LoginModule is not logged

Jayashree Huttanagoudar duke at openjdk.org
Fri Jul 8 13:34:28 UTC 2022


On Fri, 8 Jul 2022 13:12:23 GMT, Weijun Wang <weijun at openjdk.org> wrote:

> `SmartLoginModule.java` is a class used by a test, itself is not one since there's no `main()` method.
> 
You are right.
> Your new test needs to be a regression test, which means before the fix it fails and after the fix it succeeds. Also, seeing the exception message in a jtreg output with your own eyes is not a test. The test itself should detect the exception and decide whether it's a success or a failure. In the case, I'd recommend you use the `System.setErr` method to store the output into a `ByteArrayOutputStream` and then look into it.

Okay! To me at present this looks like a big task to do ;) May be because I haven't written any such tests so far :)
Let me consider this as an opportunity :) I will give a try.

-------------

PR: https://git.openjdk.org/jdk/pull/9159



More information about the security-dev mailing list