/[classpath]/classpath/java/lang/Class.java
ViewVC logotype

Diff of /classpath/java/lang/Class.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.26 by jfrijters, Thu Dec 2 11:58:05 2004 UTC revision 1.27 by jfrijters, Mon Dec 6 20:43:13 2004 UTC
# Line 188  public final class Class implements Seri Line 188  public final class Class implements Seri
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
# Line 268  public final class Class implements Seri Line 268  public final class Class implements Seri
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
# Line 1161  public final class Class implements Seri Line 1161  public final class Class implements Seri
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    
# Line 1300  public final class Class implements Seri Line 1300  public final class Class implements Seri
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);

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26