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]

FYI: Patch: java.lang.reflect.Proxy


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


I commited the attached patch to trunk to remove a workaround for gcj 
3.0.x. I really wonder why nobody considered removing this workaround 
sooner.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/c1ShWSOgCCdjSDsRAhu7AJ45KvArAqQoDm9eIwrsKEJjAquEswCdGtVb
HjJUeFbcINRI1hvVbp3bmq4=
=8Psg
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2188
diff -u -b -B -r1.2188 ChangeLog
--- ChangeLog	25 Sep 2003 19:22:31 -0000	1.2188
+++ ChangeLog	25 Sep 2003 20:43:21 -0000
@@ -1,5 +1,10 @@
 2003-09-25  Michael Koch  <konqueror@gmx.de>
 
+	* java/lang/reflect/Proxy.java
+	(getProxyClass): Remove workaround for gcj 3.0.x.
+
+2003-09-25  Michael Koch  <konqueror@gmx.de>
+
 	* gnu/java/net/PlainDatagramSocketImpl.java
 	(finalize): Moved to directly after constructor.
 	(getNativeFD): New method.
Index: java/lang/reflect/Proxy.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/reflect/Proxy.java,v
retrieving revision 1.5
diff -u -b -B -r1.5 Proxy.java
--- java/lang/reflect/Proxy.java	25 Sep 2003 07:46:19 -0000	1.5
+++ java/lang/reflect/Proxy.java	25 Sep 2003 20:43:21 -0000
@@ -269,18 +269,9 @@
                               ? getProxyData0(loader, interfaces)
                               : ProxyData.getProxyData(pt));
 
-            // FIXME workaround for bug in gcj 3.0.x
-            // Not needed with the latest gcj from cvs
-            //clazz = (Configuration.HAVE_NATIVE_GENERATE_PROXY_CLASS
-            //	       ? generateProxyClass0(loader, data)
-            //         : new ClassFactory(data).generate(loader));
-            if (Configuration.HAVE_NATIVE_GENERATE_PROXY_CLASS)
-              clazz = generateProxyClass0(loader, data);
-            else
-              {
-                ClassFactory cf = new ClassFactory(data);
-                clazz = cf.generate(loader);
-              }
+            clazz = (Configuration.HAVE_NATIVE_GENERATE_PROXY_CLASS
+		     ? generateProxyClass0(loader, data)
+                     : new ClassFactory(data).generate(loader));
           }
 
         Object check = proxyClasses.put(pt, clazz);

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