How does scala generated byte code drops the checked exception?
If it possible to write byte code for a method that is supposed to throw a checked exception? For instance the following Java class doesn't compile unless the method declares it throws the checked exception: public class CheckedExceptionJava { public Class<?> testChecked(String s) throws ClassNotFoundException { return Class.forName(s); } } While the following Scala equivalent does ( because Scala doesn't have checked exceptions ) : class CheckedException { def testChecked( s : String ) = Class.forName( s ) } Even if the bytecode generated are almost identical: Compiled from