From 8b7a7cbc813653a3248d6cf3a7779e220957bc85 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 8 May 2017 21:28:02 +0200 Subject: The great rename: the old ‘website’ is now ‘website-old’, and ‘website2’ is now ‘website’. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website-old/disableCheckedExceptions.html | 61 +++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 website-old/disableCheckedExceptions.html (limited to 'website-old/disableCheckedExceptions.html') diff --git a/website-old/disableCheckedExceptions.html b/website-old/disableCheckedExceptions.html new file mode 100644 index 00000000..64ad1cd8 --- /dev/null +++ b/website-old/disableCheckedExceptions.html @@ -0,0 +1,61 @@ + + + + + + + Project Lombok side projects - Disable checked Exceptions + + +
+

Tired of checked exceptions?

+

+ 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. +

+

Usage

+

+ 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. +

+ +
+ + + -- cgit