+2010-12-13 Andrew John Hughes <ahughes@redhat.com>
+
+ PR libgcj/46774
+ * libjava/java/security/VMAccessController.java:
+ (DEFAULT_CONTEXT): Create ProtectionDomain with
+ four argument constructor (arguments are the same
+ as those implied by the two argument constructor).
+ (getContext()): Create ProtectionDomain instances
+ with four argument constructor using a null Principal
+ array (as before) but including the classloader, which
+ was always null before.
+
2010-12-16 Release Manager
* GCC 4.5.2 released.
Permissions permissions = new Permissions();
permissions.add(new AllPermission());
ProtectionDomain[] domain = new ProtectionDomain[] {
- new ProtectionDomain(source, permissions)
+ new ProtectionDomain(source, permissions, null, null)
};
DEFAULT_CONTEXT = new AccessControlContext(domain);
}
for (int i = 3; i < classes.length; i++)
{
Class clazz = classes[i];
+ ClassLoader loader = clazz.getClassLoader();
if (DEBUG)
{
debug("checking " + clazz);
// subject to getClassLoader RuntimePermission
- debug("loader = " + clazz.getClassLoader());
+ debug("loader = " + loader);
}
if (privileged && i == classes.length - 2)
// Create a static snapshot of this domain, which may change over time
// if the current policy changes.
domains.add(new ProtectionDomain(domain.getCodeSource(),
- domain.getPermissions()));
+ domain.getPermissions(),
+ loader, null));
}
if (DEBUG)