On Wed, 24 Jun 2026 23:27:49 GMT, Brent Christian <[email protected]> wrote:
>> If `Context` can be set to use a different flag than the hardcoded one, then >> `disconnect()` can be updated to use `Context` instead? This way, the >> disconnection is always done through `cleanable.clean();` call which I find >> easier to maintain/understand. > > I will look more into it. One thing to note: disconnect() handles the PCSCException from SCardDisconnect(). run() cannot be declared to throw PCSCException. AFAICT, disconnect() would need to handle a PCSCException by unwrapping it from a RuntimeException() coming via clean() -> run(). ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/30683#discussion_r3471232929
