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]

[PATCH]: Socket.getImpl()


Hi Michael,

>I commited the attached patch to rename some methods to circumvent
>problems with java.net.

I know you're probably still in this code, but I'm putting out
a new MinGW build tonight and this is one of the patches I'm
going to apply to my build. I tested this on the Linux native
compiler too.

Thanks again for your hard work.

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/

ChangeLog
2003-11-23  Mohan Embar  <gnustuff@thisiscool.com>

	* java/net/ServerSocket.java (implAccept): Use
	Socket.getImpl() instead of Socket.impl
	* java/net/Socket.java
	(impl): Made private.
	(getImpl) Changed from private to package-private.

Index: java/net/ServerSocket.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/ServerSocket.java,v
retrieving revision 1.28
diff -u -2 -r1.28 ServerSocket.java
--- java/net/ServerSocket.java	11 Oct 2003 18:01:35 -0000	1.28
+++ java/net/ServerSocket.java	24 Nov 2003 02:08:28 -0000
@@ -330,5 +330,5 @@
       throw new IllegalBlockingModeException();
 	    
-    impl.accept(s.impl);
+    impl.accept(s.getImpl());
   }
 
Index: java/net/Socket.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/Socket.java,v
retrieving revision 1.29
diff -u -2 -r1.29 Socket.java
--- java/net/Socket.java	19 Nov 2003 08:34:21 -0000	1.29
+++ java/net/Socket.java	24 Nov 2003 02:08:30 -0000
@@ -83,5 +83,5 @@
    * The implementation object to which calls are redirected
    */
-  SocketImpl impl;
+  private SocketImpl impl;
 
   private boolean implCreated = false;
@@ -299,5 +299,5 @@
   }
 
-  private SocketImpl getImpl()
+  SocketImpl getImpl()
     throws SocketException
   {
	



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