38 |
|
|
39 |
package java.lang; |
package java.lang; |
40 |
|
|
|
import gnu.classpath.VMStackWalker; |
|
|
|
|
41 |
import java.awt.AWTPermission; |
import java.awt.AWTPermission; |
42 |
import java.io.File; |
import java.io.File; |
43 |
import java.io.FileDescriptor; |
import java.io.FileDescriptor; |
179 |
*/ |
*/ |
180 |
protected Class[] getClassContext() |
protected Class[] getClassContext() |
181 |
{ |
{ |
182 |
Class[] stack1 = VMStackWalker.getClassContext(); |
return VMSecurityManager.getClassContext(); |
|
Class[] stack2 = new Class[stack1.length - 1]; |
|
|
System.arraycopy(stack1, 1, stack2, 0, stack1.length - 1); |
|
|
return stack2; |
|
183 |
} |
} |
184 |
|
|
185 |
/** |
/** |
201 |
*/ |
*/ |
202 |
protected ClassLoader currentClassLoader() |
protected ClassLoader currentClassLoader() |
203 |
{ |
{ |
204 |
Class cl = currentLoadedClass(); |
return VMSecurityManager.currentClassLoader(); |
|
return cl != null ? cl.getClassLoader() : null; |
|
205 |
} |
} |
206 |
|
|
207 |
/** |
/** |