Exception transparency - lone throws (no checked exceptions)

Nathan Bryant nathan.bryant at linkshare.com
Mon Jun 14 16:54:49 PDT 2010


Under exception transparency, how will "throws nothing" be declared?

public void foo(Bar<E> bar) throws E;

new Bar<RuntimeException>() would of course work, but seems...
idiomatic.

Is new Bar<void>() legal?


More information about the lambda-dev mailing list