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.io.RandomAccessFile


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

Hi list,


I commited the attached patch to fix java.io.RandomAccessFile.


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

iD8DBQE+/GfVWSOgCCdjSDsRAvXxAJ97lOagKisVrKUS77A0K+9WJQ99kgCfRsBk
cOKOZxjT+i1f71Ux9UznaiA=
=lYda
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2001
diff -u -b -B -r1.2001 ChangeLog
--- ChangeLog	27 Jun 2003 13:41:25 -0000	1.2001
+++ ChangeLog	27 Jun 2003 15:44:13 -0000
@@ -1,5 +1,11 @@
 2003-06-27  Michael Koch  <konqueror@gmx.de>
 
+	* java/io/RandomAccessFile.java
+	(readLine): Removed wrong @deprecated tag.
+	(getChannel): Made final.
+
+2003-06-27  Michael Koch  <konqueror@gmx.de>
+
 	* gnu/java/nio/FileChannelImpl.java
 	(write): Removed.
 
Index: java/io/RandomAccessFile.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/io/RandomAccessFile.java,v
retrieving revision 1.15
diff -u -b -B -r1.15 RandomAccessFile.java
--- java/io/RandomAccessFile.java	13 May 2003 09:13:31 -0000	1.15
+++ java/io/RandomAccessFile.java	27 Jun 2003 15:44:13 -0000
@@ -488,8 +488,6 @@
    * @exception IOException If an error occurs
    *
    * @see DataOutput
-   *
-   * @deprecated
    */
   public final String readLine () throws IOException
   {
@@ -962,7 +960,7 @@
    * A file channel must be created by first creating an instance of
    * Input/Output/RandomAccessFile and invoking the getChannel() method on it.
    */
-  public synchronized FileChannel getChannel ()
+  public final synchronized FileChannel getChannel ()
   {
     if (ch == null)
       ch = new FileChannelImpl (fd, true, this);

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