Gernot Neppert mcnepp02 at
Mon Feb 28 02:21:06 PST 2011

2011/2/27 Dr Heinz M. Kabutz <heinz at>:
> Hi,
> Brian told me about the discussion going on here on coin-dev.  I
> published a newsletter today on the new Java 7 try-with-resource
> construct and how we could use it for automatically unlocking.  By
> combining it with static imports, we can write the following code:
>    try (lock(lock)) {
>      printLockStatus();
>    }

To be frank: publishing the exact proposal that I made on this list a
couple of days back as your idea seems not to be the best of
But then, you may become minster of defense in Germany with this technique ;-)
(For those not familiar with German current affairs: google
"Guttenberg plagiat")

More information about the coin-dev mailing list