From: "Samuel W Lu" <samlu@lehman.com>
Message-Id: <9711251058.ZM24745@fia21-92.fiadev21.lehman.com>
Date: Tue, 25 Nov 1997 10:58:53 -0500
To: java-security@web2.javasoft.com
Subject: class marked as nonpublic to untrusted code
I wrote the following applet:
import java.applet.*;
import java.security.Principal;
import java.security.acl.*;
import sun.security.acl.*;
public class x extends Applet
{
public void init() { Principal x = new PrincipalImpl("x"); }
}
If I run this in IE 4.0 with SDK-Java.20, I get the following exception in
the javalog.txt file:
java.lang.IllegalAccessError: sun/security/acl/PrincipalImpl has been
marked as
nonpublic to untrusted code.
at x.init
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
Is it a feature of the JDK 1.1 class loader to mark certain classes as
nonpublic to untrusted code? Or is this another Microsoft "extension"?
-- s a m ----- 3 World Financial Ctr, 11th Fl, New York, NY 10285. 212.526.3653