diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-31 22:31:40 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-31 22:31:40 +0000 |
| commit | 46a70e7d0eee7274c581a4a11446e5d524e31807 (patch) | |
| tree | 58afefccc03082c2ba80876586e2554dee250583 /libjava/java/io | |
| parent | 821653e13844241cf2cebedbd153bd9482c54b51 (diff) | |
| download | ppe42-gcc-46a70e7d0eee7274c581a4a11446e5d524e31807.tar.gz ppe42-gcc-46a70e7d0eee7274c581a4a11446e5d524e31807.zip | |
Re-merge with Classpath:
* java/util/Comparator (equals): Added.
* java/io/PipedWriter.java (write): Changed argument to `int'.
* java/io/FileDescriptor.java (FileDescriptor()): New
constructor.
* java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45337 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/io')
| -rw-r--r-- | libjava/java/io/File.java | 2 | ||||
| -rw-r--r-- | libjava/java/io/FileDescriptor.java | 5 | ||||
| -rw-r--r-- | libjava/java/io/PipedWriter.java | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/libjava/java/io/File.java b/libjava/java/io/File.java index 25b6fcd674d..12297acc4ae 100644 --- a/libjava/java/io/File.java +++ b/libjava/java/io/File.java @@ -157,7 +157,7 @@ public class File implements Serializable, Comparable } /** @since 1.2 */ - public File getAbsoluteFile () throws IOException + public File getAbsoluteFile () { return new File (getAbsolutePath()); } diff --git a/libjava/java/io/FileDescriptor.java b/libjava/java/io/FileDescriptor.java index 8afcda4768f..a8bf7512c66 100644 --- a/libjava/java/io/FileDescriptor.java +++ b/libjava/java/io/FileDescriptor.java @@ -43,6 +43,11 @@ public final class FileDescriptor static final int SET = 0; static final int CUR = 1; + // This constructor is specified to create an invalid descriptor. + public FileDescriptor () + { + } + // Open a file. MODE is a combination of the above mode flags. FileDescriptor (String path, int mode) throws FileNotFoundException { diff --git a/libjava/java/io/PipedWriter.java b/libjava/java/io/PipedWriter.java index ebcbde783ec..d5dd8bf5899 100644 --- a/libjava/java/io/PipedWriter.java +++ b/libjava/java/io/PipedWriter.java @@ -104,9 +104,9 @@ public class PipedWriter extends Writer * @exception IOException If the stream has not been connected or has * been closed. */ - public void write(char b) throws IOException + public void write(int b) throws IOException { - read_buf[0] = b; + read_buf[0] = (char) (b & 0xffff); sink.receive (read_buf, 0, 1); } |

