Field.java (Field): New constructor.
* java/lang/reflect/Field.java (Field): New constructor. * java/lang/ClassLoader.java (defineClass(String,byte[],int,int)): Throw ClassFormatError. From-SVN: r46458
This commit is contained in:
parent
b000e64f52
commit
0a3abdb238
3 changed files with 13 additions and 0 deletions
|
@ -32,6 +32,12 @@ public final class Field extends AccessibleObject implements Member
|
|||
// Offset in bytes from the start of declaringClass's fields array.
|
||||
private int offset;
|
||||
|
||||
// This is instantiated by Class sometimes, but it uses C++ and
|
||||
// avoids the Java protection check.
|
||||
Field ()
|
||||
{
|
||||
}
|
||||
|
||||
public boolean equals (Object fld)
|
||||
{
|
||||
if (! (fld instanceof Field))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue