188 |
if (classloader == null) |
if (classloader == null) |
189 |
{ |
{ |
190 |
// Check if we may access the bootstrap classloader |
// Check if we may access the bootstrap classloader |
191 |
SecurityManager sm = System.getSecurityManager(); |
SecurityManager sm = SecurityManager.current; |
192 |
if (sm != null) |
if (sm != null) |
193 |
{ |
{ |
194 |
// Get the calling class and classloader |
// Get the calling class and classloader |
268 |
|
|
269 |
ClassLoader loader = VMClass.getClassLoader(this); |
ClassLoader loader = VMClass.getClassLoader(this); |
270 |
// Check if we may get the classloader |
// Check if we may get the classloader |
271 |
SecurityManager sm = System.getSecurityManager(); |
SecurityManager sm = SecurityManager.current; |
272 |
if (sm != null) |
if (sm != null) |
273 |
{ |
{ |
274 |
// Get the calling class and classloader |
// Get the calling class and classloader |
1161 |
*/ |
*/ |
1162 |
public ProtectionDomain getProtectionDomain() |
public ProtectionDomain getProtectionDomain() |
1163 |
{ |
{ |
1164 |
SecurityManager sm = System.getSecurityManager(); |
SecurityManager sm = SecurityManager.current; |
1165 |
if (sm != null) |
if (sm != null) |
1166 |
sm.checkPermission(new RuntimePermission("getProtectionDomain")); |
sm.checkPermission(new RuntimePermission("getProtectionDomain")); |
1167 |
|
|
1300 |
*/ |
*/ |
1301 |
private void memberAccessCheck(int which) |
private void memberAccessCheck(int which) |
1302 |
{ |
{ |
1303 |
SecurityManager sm = System.getSecurityManager(); |
SecurityManager sm = SecurityManager.current; |
1304 |
if (sm != null) |
if (sm != null) |
1305 |
{ |
{ |
1306 |
sm.checkMemberAccess(this, which); |
sm.checkMemberAccess(this, which); |