|
Hi,
My signed Applet has the following classes...
package com.beep;
import java.security.AccessController;
import java.security.AllPermission;
public class Boop extends BoopImpl
{
public static void init()
{
try{
AccessController.checkPermission(new AllPermission());
DB.print("#4 AllPermission=OK");
}catch(Throwable t){
DB.print("#4 AllPermission=FAIL");
}
BoopImpl.init();
}
}
package com.beep;
import com.beep.DB;
import java.security.AccessController;
import java.security.AllPermission;
public abstract class BoopImpl
{
public static void init()
{
try{
AccessController.checkPermission(new AllPermission());
DB.print("#5 AllPermission=OK");
}catch(Throwable t){
DB.print("#5 AllPermission=FAIL");
}
}
}
My output is as follows...
TestRunner START
java.runtime.name #2=Java(TM) SE Runtime Environment
#2 AllPermission=OK
#4 AllPermission=OK
#5 AllPermission=FAIL
BoopImpl has the same package as Boop.
BoopImpl has the same ProtectionDomain as Boop.
Can anyone please explain why the thread suddenly loses permissions?
Regards
Penny
|