Commit 0a3abdb2 by Tom Tromey Committed by Tom Tromey

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
parent b000e64f
2001-10-23 Tom Tromey <tromey@redhat.com>
* java/lang/reflect/Field.java (Field): New constructor.
* java/lang/ClassLoader.java (defineClass(String,byte[],int,int)):
Throw ClassFormatError.
2001-10-23 Tom Tromey <tromey@redhat.com>
* java/util/PropertyResourceBundle.java (handleGetObject): Now
public.
* java/util/ListResourceBundle.java (handleGetObject): Now public
......
......@@ -196,6 +196,7 @@ public abstract class ClassLoader
}
protected final Class defineClass(String name, byte[] data, int off, int len)
throws ClassFormatError
{
return defineClass (name, data, off, len, defaultProtectionDomain);
}
......
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment