A DESCRIPTION OF THE REQUEST :
Allow checking of exceptions as described in the JLS ����11.2.3 to be disabled. On way of doing this could be to add a compiler option that turns all exception checking off. Another possibility could be to only let the compiler option disable checking of a particular subclass of Exception, and then let a some of the existing exceptions in the Java API inherit from that class, for instance IOException.
The java language spec mandates that if a method A calls another method B that throws a checked exception X, either A must catch and handle X or declare that it throws X. This is reasonable in some situations when the exception is best handled locally, for instance with InterruptedException. But in many other situations, for instance with many IOExceptions, exceptions are best handled by a bottom level exception handler. Checked exceptions gets in the way of this by either forcing any part of the code that touches a checked exception to declare that it might throw that exception, which often breaks encapsulation, or to handle the exception locally when it is better handled somewhere else.
One situation where this gets in your way is if you define a visitor interface for a syntax tree and it turns out that a method in some implementation of this visitor might throw a checked exception. You then either have to declare in the interface that this method might throw the exception or handle the exception locally. Both ways are undesirable: either all code that uses any implementation of the visitor must now deal with this exception or you are forced to handle the exception locally when it is probably better handled at a bottom level exception handler. The latter case is especially bad because if it occurs often you are less likely to handle exceptions properly, which is in direct conflict with the rationale for introducing checked exceptions. Another way to handle this case is to throw a chained exception which is really just a way of working around checking the exception, and which still forces you to write a boilerplate exception handler locally.
Allowing exception checking to be turned off does introduce some problems. For instance, existing code might call a method 'm' that doesn't declare that it throws any exceptions and expect that any exception thrown from that method must be an Error or a RuntimeException. If 'm' turns out to have been compiled without exception checking it might actually throw a checked exception anyway, which might break the existing code. However, the same thing might happen today if the code is compiled agains a version of 'm' that doesn't throw the exception but run using a version of 'm' that does.
There are probably other compatibility issues to work out but it would save a lot of people at lot of trouble, and cause code to be easier to manage and to evolve without breaking compatibility, if it was possible to turn this checking off.