857 |
*/ |
*/ |
858 |
public int getModifiers() |
public int getModifiers() |
859 |
{ |
{ |
860 |
return VMClass.getModifiers (this); |
return VMClass.getModifiers (this, false); |
861 |
} |
} |
862 |
|
|
863 |
/** |
/** |
1117 |
if (constructor == null) |
if (constructor == null) |
1118 |
throw new InstantiationException(getName()); |
throw new InstantiationException(getName()); |
1119 |
if (!Modifier.isPublic(constructor.getModifiers()) |
if (!Modifier.isPublic(constructor.getModifiers()) |
1120 |
|| !Modifier.isPublic(getModifiers())) |
|| !Modifier.isPublic(VMClass.getModifiers(this, true))) |
1121 |
{ |
{ |
1122 |
final Constructor finalConstructor = constructor; |
final Constructor finalConstructor = constructor; |
1123 |
AccessController.doPrivileged(new PrivilegedAction() |
AccessController.doPrivileged(new PrivilegedAction() |
1137 |
} |
} |
1138 |
int modifiers = constructor.getModifiers(); |
int modifiers = constructor.getModifiers(); |
1139 |
if (!Modifier.isPublic(modifiers) |
if (!Modifier.isPublic(modifiers) |
1140 |
|| !Modifier.isPublic(getModifiers())) |
|| !Modifier.isPublic(VMClass.getModifiers(this, true))) |
1141 |
{ |
{ |
1142 |
Class caller = VMStackWalker.getCallingClass(); |
Class caller = VMStackWalker.getCallingClass(); |
1143 |
if (caller != null && |
if (caller != null && |