Tom HawtinThomas Hawtin's WeblogAn alternative to flexible checking for rethrown exceptions.- January 13, 2008 It has been suggested that the Java language should be extended to allow caught checked exceptions to be rethrown without explicitly mentioning the exception type. void fn() throws XException, YException, ZException try ... throw XYZException ... catch (final Exception exc) ... throw exc; Must be of type caught. A more Javaish alternative would be to make the...http://www.jroller.com/tackline/entry/an_alternative_to_flexible_checking checkPermission: SecurityManager vs AccessController- January 10, 2008 So does AccessController.checkPermission completely replace SecurityManager.checkPermission, as was suggested in a recent Javalobby mailing No. (Despite the poor example in the AccessController API docs.) Pity, because as a static method, the AccessController version is simpler to use. The first problem is that you don't want to call checkPermission if there is no current SecurityManager, so you still need to System.getSecurityManager() . More fundamentally, SecurityManager instances can...http://www.jroller.com/tackline/entry/checkpermission_securitymanager_vs_accesscontroller |