Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #8480
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Jan Burse <janburse@fastmail.fm> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Thumbs up for suppressable exceptions in JDK 1.7 |
| Date | Sun, 02 Oct 2011 13:38:21 +0200 |
| Organization | albasani.net |
| Lines | 33 |
| Message-ID | <j69ifh$d1b$1@news.albasani.net> (permalink) |
| References | <j5ru3o$cu7$1@news.albasani.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-15; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.albasani.net jDFfzRnqvPa8io/t+IDTwg3kVknJR2uPpiC7Uf2PIeAFaV105F+JpmqzDuBiebiCd0/B+e9u5ekHqvL0xSq1WA== |
| NNTP-Posting-Date | Sun, 2 Oct 2011 11:38:25 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="EsOjAinwILBw7VCS4jUmUmJsoPxocAoleg3YfX15Ghh/J7zxG+lAEU0lzhto3e2GReKbmU5fbBeZ6FJhDkupOsMjIeGPIHdMYc0awF36cBYrgoo6SD9cTnggBxI4oI58"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110928 Firefox/7.0.1 SeaMonkey/2.4.1 |
| In-Reply-To | <j5ru3o$cu7$1@news.albasani.net> |
| Cancel-Lock | sha1:b4dPiUSRaYR1GRLIfWQDSwj2Z3E= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8480 |
Show key headers only | View raw
Jan Burse schrieb:
> Dear All
>
> Was just playing around with suppressable exceptions
> in JDK 1.7. This looks like a great improvement for
> bug hunting!
>
> Best Regards
Just see that java.sql.Statement implements AutoClosable
in JDK 1.7. Is this also worth a thumbs up?
Unfortunately not yet. If I am using some java database
object cursors, then I typically have some database
beans as follows:
class Bean() {
void open();
boolean next();
void close();
}
Then I have to wait until my DBBean also implements
the AutoClosable interface. As I cannot use the
try-with-resource statement. Since the SQL statement
is burried in the Bean.
Any other interesting classes that have received the
AutoCloseable interface in JDK 1.7? My IDE says that
around ~580 classes/interfaces implemented/extend
this interface!
Bye
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Thumbs up for suppressable exceptions in JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-09-27 09:31 +0200
Re: Thumbs up for suppressable exceptions in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-09-27 02:28 -0700
Re: Thumbs up for suppressable exceptions in JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-09-27 11:38 +0200
Re: Thumbs up for suppressable exceptions in JDK 1.7 Tom Anderson <twic@urchin.earth.li> - 2011-09-27 20:43 +0100
Re: Thumbs up for suppressable exceptions in JDK 1.7 Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-09-29 18:05 +0200
Re: Thumbs up for suppressable exceptions in JDK 1.7 Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-09-29 11:25 -0700
Re: Thumbs up for suppressable exceptions in JDK 1.7 Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-09-29 23:57 +0200
Re: Thumbs up for suppressable exceptions in JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-09-30 11:30 +0200
Re: Thumbs up for suppressable exceptions in JDK 1.7 Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-29 18:57 -0300
Re: Thumbs up for suppressable exceptions in JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-10-02 13:38 +0200
Re: Thumbs up for suppressable exceptions in JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-10-02 13:45 +0200
Re: Thumbs up for suppressable exceptions in JDK 1.7 Tom Anderson <twic@urchin.earth.li> - 2011-10-03 19:08 +0100
csiph-web