This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ecj] Patch: FYI: fix bug in Class.java


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]