Clover coverage report - clover
Coverage timestamp: Sat Oct 8 2005 22:54:17 EDT
file stats: LOC: 38   Methods: 4
NCLOC: 22   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
AppletSecurityManager.java 50% 66.7% 75% 64.3%
coverage coverage
 1   
 package abbot.script;
 2   
 
 3   
 import abbot.ExitException;
 4   
 
 5   
 /** This security manager extends sun.applet.AppletSecurity b/c
 6   
  * AppletViewer does some casts that assume that is the only security
 7   
  * manager that will be installed.  It has to permit everything, though, or
 8   
  * the framework will be hampered.  Because of this, it isn't a reliable test
 9   
  * of an applet responding well to restricted permissions.
 10   
  */
 11   
 // FIXME need to determine what causes the class circularity errors and then
 12   
 // defer to the AppletSecurity
 13   
 // NOTE: don't see the class circularity any more, maybe the class loading
 14   
 // restructuring in 0.9/0.10 has fixed it?
 15   
 public class AppletSecurityManager extends sun.applet.AppletSecurity {
 16   
 
 17   
     SecurityManager parent;
 18  11
     public AppletSecurityManager(SecurityManager sm) {
 19  11
         parent = sm;
 20   
     }
 21   
 
 22  0
     public void checkPermission(java.security.Permission perm,
 23   
                                 Object context) {
 24  0
         if (parent != null) {
 25  0
             parent.checkPermission(perm, context);
 26   
         }
 27   
     }
 28  6673
     public void checkPermission(java.security.Permission perm) {
 29  6673
         if (parent != null) {
 30  5390
             parent.checkPermission(perm);
 31   
         }
 32   
     }
 33   
 
 34  11
     public void checkExit(int status) {
 35  11
         throw new ExitException("Applet System.exit disallowed", status);
 36   
     }
 37   
 }
 38