This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: Another minor spec fix
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Subject: Patch: FYI: Another minor spec fix
- From: Tom Tromey <tromey at redhat dot com>
- Date: 23 Oct 2001 22:55:45 -0600
- Reply-To: tromey at redhat dot com
I'm checking this in. This corrects two minor divergences from the
spec.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* java/lang/reflect/Field.java (Field): New constructor.
* java/lang/ClassLoader.java (defineClass(String,byte[],int,int)):
Throw ClassFormatError.
Index: java/lang/ClassLoader.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/ClassLoader.java,v
retrieving revision 1.14
diff -u -r1.14 ClassLoader.java
--- java/lang/ClassLoader.java 2001/09/01 01:17:23 1.14
+++ java/lang/ClassLoader.java 2001/10/24 04:37:07
@@ -196,6 +196,7 @@
}
protected final Class defineClass(String name, byte[] data, int off, int len)
+ throws ClassFormatError
{
return defineClass (name, data, off, len, defaultProtectionDomain);
}
Index: java/lang/reflect/Field.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/reflect/Field.java,v
retrieving revision 1.6
diff -u -r1.6 Field.java
--- java/lang/reflect/Field.java 2001/08/24 17:24:44 1.6
+++ java/lang/reflect/Field.java 2001/10/24 04:37:08
@@ -32,6 +32,12 @@
// 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))