#import "/_scaffold.html" as main> <@main.scaffold>
This lombok spinoff project consists of a hack that only works in javac - not eclipse or any other IDE.
It will completely disable the notion of checked exceptions. You may throw any exception anywhere, and you may also catch any exception anywhere. In standard javac, you may not catch a checked exception that is not declared as thrown by at least 1 statement in your try block, unless it is Exception
or Throwable
.
This restriction is lifted as well.
Just make sure disableCheckedExceptions-alpha.jar
is on the classpath as you compile. For example:
javac -cp disableCheckedExceptions-alpha.jar MySource.java
Ready to try it out? download it here: disableCheckedExceptions-alpha.jar
Want to know how its done? Grab the lombok repository here on github, and look in the experimental
directory.