News for hackers. Stuff that matters.
Re:Garbage collection with Automatic Resource Management in ... by sixcorners on Monday January 16, 2012 @12:29PM (#3471535)
(I had another comment here but I figured out the answer.)

lombok's @Cleanup will close anything, interface or not.

Re:Garbage collection with Automatic Resource Management in ... by grepgrep on Monday January 16, 2012 @12:35PM (#3471562)
I took a look at lombok and it's pretty obvious from the way cleanup method names can be passed as strings that's it's using reflection. It's a bit of a nasty hack, but it works.
Re:Garbage collection with Automatic Resource Management in ... by sixcorners on Monday January 16, 2012 @11:45PM (#3473779)
It fiddles with the AST during compilation. No reflection.
Re:Garbage collection with Automatic Resource Management in ... by thebluesky on Tuesday January 17, 2012 @01:23AM (#3473984)
Sounds like it's trying to add structural subtyping via the back door.