News for hackers. Stuff that matters.
Re:Stab Language (like C#) for the JVM by RyanZAG on Saturday January 05, 2013 @01:51PM (#5013555)
This isn't correct, is it?

  Because the Java platform does not have a common interface
  to specify disposable objects, the Stab compiler uses the 
  stab.lang.Dispose annotation to find the method to call to 
  dispose the instances of a given type. 
Java has Closeable to specify this.

http://docs.oracle.com/javase/1.5.0/docs/api/java/io/Closeab...

Re:Stab Language (like C#) for the JVM by callmevlad on Saturday January 05, 2013 @02:01PM (#5013600)
Notice that Closable is in the IO namespace. I think the author is saying there is no equivalent to the .Net System.IDisposable, which can be applied to any object.

Edit: See http://stackoverflow.com/questions/1165428/should-closeable-...

Re:Stab Language (like C#) for the JVM by paul_odin on Saturday January 05, 2013 @02:18PM (#5013661)
Java 7 adds java.lang.AutoCloseable (together with try-with-resources) which is essentially the same thing.

http://docs.oracle.com/javase/7/docs/api/java/lang/AutoClose...