Re: Java's anonymous inner classes

2008-04-06 Thread Aristotle Pagaltzis
* Marco Von Ballmoos mvonbal...@gmail.com [2008-04-05 00:10]: C#'s generics are better, but still forbid covariance Have to, to ensure type safety. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: Java's anonymous inner classes

2008-04-06 Thread numien
Simon Wistow wrote: because that doesn't make sense. So what you have to do is Foo foo; try { foo = FooFactory.getFoo(); runBar(foo); } catch (SomeCommonException e) { System.err.println(Got an exception: +e); } finally {