This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[ecj] Patch: FYI: fix bug in Class.java
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 04 Jun 2006 13:46:47 -0600
- Subject: [ecj] Patch: FYI: fix bug in Class.java
- Reply-to: tromey at redhat dot com
I'm checking this in on the gcj-eclipse branch.
This fixes a bug in Class pointed out by ecj.
This happens to work with the current gcj because gcj internally
declares the fields of Class.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* java/lang/Class.java (getClassLoaderInternal): Now native.
Index: java/lang/Class.java
===================================================================
--- java/lang/Class.java (revision 114362)
+++ java/lang/Class.java (working copy)
@@ -1,5 +1,5 @@
/* Class.java -- Representation of a Java class.
- Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005
+ Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2006
Free Software Foundation
This file is part of GNU Classpath.
@@ -203,10 +203,7 @@
* Internal method that circumvents the usual security checks when
* getting the class loader.
*/
- private ClassLoader getClassLoaderInternal ()
- {
- return loader;
- }
+ private native ClassLoader getClassLoaderInternal ();
/**
* If this is an array, get the Class representing the type of array.