jamvm
changeset 399:2b94bfbe7ec6
Remove ambiguity caused by new CodeSource constructor.
2008-08-04 Andrew John Hughes <gnu_andrew@member.fsf.org>
* lib/java/security/VMAccessController.java:
Remove ambiguity in call to java.security.CodeSource
constructor introduced by recent API changes.
2008-08-04 Andrew John Hughes <gnu_andrew@member.fsf.org>
* lib/java/security/VMAccessController.java:
Remove ambiguity in call to java.security.CodeSource
constructor introduced by recent API changes.
| author | andrew |
|---|---|
| date | Tue Aug 05 04:08:33 2008 +0100 (2008-08-05) |
| parents | 6476eceedae8 |
| children | 5baaa2bcac6b |
| files | ChangeLog lib/java/security/VMAccessController.java |
line diff
1.1 --- a/ChangeLog Tue Aug 05 04:04:18 2008 +0100 1.2 +++ b/ChangeLog Tue Aug 05 04:08:33 2008 +0100 1.3 @@ -5,6 +5,12 @@ 1.4 ============== 1.5 2008-08-04 Andrew John Hughes <gnu_andrew@member.fsf.org> 1.6 1.7 + * lib/java/security/VMAccessController.java: 1.8 + Remove ambiguity in call to java.security.CodeSource 1.9 + constructor introduced by recent API changes. 1.10 + 1.11 +2008-08-04 Andrew John Hughes <gnu_andrew@member.fsf.org> 1.12 + 1.13 * lib/java/lang/VMClassLoader.java, 1.14 * lib/java/lang/VMRuntime.java, 1.15 * lib/java/lang/VMThread.java,
2.1 --- a/lib/java/security/VMAccessController.java Tue Aug 05 04:04:18 2008 +0100 2.2 +++ b/lib/java/security/VMAccessController.java Tue Aug 05 04:08:33 2008 +0100 2.3 @@ -36,6 +36,10 @@ 2.4 2.5 package java.security; 2.6 2.7 +import java.net.URL; 2.8 + 2.9 +import java.security.cert.Certificate; 2.10 + 2.11 import java.util.HashSet; 2.12 import java.util.LinkedList; 2.13 2.14 @@ -70,7 +74,8 @@ 2.15 private final static AccessControlContext DEFAULT_CONTEXT; 2.16 static 2.17 { 2.18 - CodeSource source = new CodeSource(null, null); 2.19 + //CodeSource source = new CodeSource(null, null); 2.20 + CodeSource source = new CodeSource((URL) null, (Certificate[]) null); 2.21 Permissions permissions = new Permissions(); 2.22 permissions.add(new AllPermission()); 2.23 ProtectionDomain[] domain = new ProtectionDomain[] {
