On Tue, 14 Apr 2026 10:10:12 GMT, Alan Bateman <[email protected]> wrote:

> Has there been any static analysis done to get some sense as to how common it 
> is to not disconnect a connection to a card or close a card channel? Asking 
> because it would be nice if we could just remove the undocumented use of the 
> finalizer.

Static analysis turned up several artifacts/libraries where a `Card` object 
returned by `CardTerminal.connect()` is not  `disconnect()`ed. 😕

> Related is that the example in the package example should be using 
> try-finally to ensure that disconnect is called

I updated the example to use try-finally.

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

PR Comment: https://git.openjdk.org/jdk/pull/30683#issuecomment-4410166181

Reply via email to