commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: Patch: FileChannelImpl


From: Jeroen Frijters
Subject: FYI: Patch: FileChannelImpl
Date: Sun, 11 Apr 2004 14:02:09 +0200

Michael Koch wrote:
> > -  /** Attach to an already-opened file.  */
> > -  public FileChannelImpl (int desc, int mode)
> > -  {
> > -    fd = desc;
> > -    this.mode = mode;
> > -  }
> 
> can you please re-add the above constructor. Its needed from JNI. I 
> forgot about this, sorry.

Oops. Sorry about that. I added it back.

Regards,
Jeroen

2004-04-11  Jeroen Frijters  <address@hidden>

        * gnu/java/nio/channels/FileChannelImpl.java:
        (FileChannelImpl(int,int)) Restored previously removed
constructor
        and made it private.

Index: gnu/java/nio/channels/FileChannelImpl.java
===================================================================
RCS file:
/cvsroot/classpath/classpath/gnu/java/nio/channels/FileChannelImpl.java,
v
retrieving revision 1.2
diff -u -r1.2 FileChannelImpl.java
--- gnu/java/nio/channels/FileChannelImpl.java  9 Apr 2004 14:46:04
-0000   1.2
+++ gnu/java/nio/channels/FileChannelImpl.java  11 Apr 2004 11:55:58
-0000
@@ -112,6 +112,13 @@
     this.mode = mode;
   }
 
+  /* Used by init() (native code) */
+  private FileChannelImpl (int fd, int mode)
+  {
+    this.fd = fd;
+    this.mode = mode;
+  }
+
   public static FileChannelImpl in;
   public static FileChannelImpl out;
   public static FileChannelImpl err;






reply via email to

[Prev in Thread] Current Thread [Next in Thread]