/[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.27 by jfrijters, Mon Dec 6 20:43:13 2004 UTC revision 1.28 by jfrijters, Mon Dec 27 11:39:28 2004 UTC
# Line 129  public final class Class implements Seri Line 129  public final class Class implements Seri
129    Class(Object vmdata, ProtectionDomain pd)    Class(Object vmdata, ProtectionDomain pd)
130    {    {
131      this.vmdata = vmdata;      this.vmdata = vmdata;
132      this.pd = pd;      // If the VM didn't supply a protection domain and the class is an array,
133        // we "inherit" the protection domain from the component type class. This
134        // saves the VM from having to worry about protection domains for array
135        // classes.
136        if (pd == null && isArray())
137          this.pd = getComponentType().pd;
138        else
139          this.pd = pd;
140    }    }
141    
142    /**    /**

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

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