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:
Tom Tromey 2001-10-24 04:38:08 +00:00 committed by Tom Tromey
parent b000e64f52
commit 0a3abdb238
3 changed files with 13 additions and 0 deletions

View file

@ -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))