jogamp
›
general
Login
Register
Search
everywhere
only in this topic
Advanced Search
Losing Permissions.
Classic
List
Threaded
♦
♦
Locked
2 messages
Options
Loading...
Subscribe via email
Move topic
Pin topic
Unpin topic
Lock topic
Unlock topic
Delete this topic
Delete this topic
Change title and meta tags
Embed post
Permalink
Penny
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Dec 11, 2013; 11:36am
Losing Permissions.
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
gouessej
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Dec 11, 2013; 2:00pm
Re: Losing Permissions.
Administrator
Which exception is thrown? AccessControlException?
Julien Gouesse |
Personal blog
|
Website
Free forum by Nabble
Edit this page