From badcff41191a32dd851b6c1a9439e86d1ba26265 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Thu, 17 Oct 2002 13:59:00 +0000 Subject: [PATCH] close0 is private. and should throw exception. --- .../utils/org/eclipse/cdt/utils/pty/PTYOutputStream.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/pty/PTYOutputStream.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/pty/PTYOutputStream.java index e9331f2e6cc..31ba3235246 100644 --- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/pty/PTYOutputStream.java +++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/pty/PTYOutputStream.java @@ -59,15 +59,15 @@ public class PTYOutputStream extends OutputStream { return; int status = close0(fd); if (status == -1) - throw new IOException("close error"); + throw new IOException("close error"); //$NON-NLS-1$ fd = -1; } - private native int write0(int fd, byte[] b, int len); - private native int close0(int fd); + private native int write0(int fd, byte[] b, int len) throws IOException; + private native int close0(int fd) throws IOException; static { - System.loadLibrary("pty"); + System.loadLibrary("pty"); //$NON-NLS-1$ } }