Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #8495

Re: Thumbs up for suppressable exceptions in JDK 1.7

From Tom Anderson <twic@urchin.earth.li>
Newsgroups comp.lang.java.programmer
Subject Re: Thumbs up for suppressable exceptions in JDK 1.7
Date 2011-10-03 19:08 +0100
Organization Stack Usenet News Service
Message-ID <alpine.DEB.2.00.1110031907410.30829@urchin.earth.li> (permalink)
References <j5ru3o$cu7$1@news.albasani.net> <j69ifh$d1b$1@news.albasani.net> <j69it4$dvh$1@news.albasani.net>

Show all headers | View raw


On Sun, 2 Oct 2011, Jan Burse wrote:

> Jan Burse schrieb:
>
>> 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!
>
> Ok the number is so high, because in JDK 1.7 Closeable
> extendes AutoCloseable. But we find classes such as
>
>   javax.sound.midi.Receiver
>   javax.sound.midi.MidiDevice
>   javax.sound.midi.Transmitter
>   javax.sound.sampled.Line
>   javax.sql.ResultSet
>   javax.sql.Connection
>
> Which are genuine AutoClosable.

I believe that they automatically added AutoCloseable to every class or 
interface with a no-args close() method. That's quite a few.

tom

-- 
Now I am thoroughly confused. -- Colin Brace sums up RT3090 support
in Linux

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar


Thread

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