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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user