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 |
/** |
/** |