From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29079 invoked by alias); 12 Jun 2002 23:12:28 -0000 Mailing-List: contact mauve-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-discuss-owner@sources.redhat.com Received: (qmail 29060 invoked from network); 12 Jun 2002 23:12:27 -0000 Received: from unknown (HELO web10001.mail.yahoo.com) (216.136.130.37) by sources.redhat.com with SMTP; 12 Jun 2002 23:12:27 -0000 Message-ID: <20020612231227.35999.qmail@web10001.mail.yahoo.com> Received: from [149.225.132.225] by web10001.mail.yahoo.com via HTTP; Wed, 12 Jun 2002 16:12:27 PDT Date: Wed, 12 Jun 2002 16:12:00 -0000 From: Dalibor Topic Subject: [mauve] Patch for BufferedByteOutputStream To: Mauve Discussion Mailing List MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-264993701-1023923547=:33769" X-SW-Source: 2002-q2/txt/msg00050.txt.bz2 --0-264993701-1023923547=:33769 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 339 Hi, attached you'll find a patch that fixes the interrupt test for java.io.BufferedByteOutputStream. The patch was created by Timothy Stack . best regards, dalibor topic __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com --0-264993701-1023923547=:33769 Content-Type: text/plain; name="interrupt.diff.txt" Content-Description: interrupt.diff.txt Content-Disposition: inline; filename="interrupt.diff.txt" Content-length: 1068 Index: interrupt.java =================================================================== RCS file: /cvs/mauve/mauve/gnu/testlet/java/io/BufferedByteOutputStream/interrupt.java,v retrieving revision 1.2 diff -u -r1.2 interrupt.java --- interrupt.java 27 Sep 2001 15:36:17 -0000 1.2 +++ interrupt.java 11 Jun 2002 18:36:26 -0000 @@ -25,6 +25,11 @@ super (null); } + private int getCount() + { + return this.count; + } + public void test (TestHarness harness) { // We create an output stream that will throw an @@ -36,7 +41,7 @@ int BUFFER = 7; helper h = new helper (10); - BufferedOutputStream out = new interrupt (h, BUFFER); + interrupt out = new interrupt (h, BUFFER); boolean ok = false; int i = -1; @@ -63,7 +68,7 @@ // In theory the BufferedOutputStream should notice the // InterruptedIOException and update its internal data structure // accordingly. - harness.check (count, 4); + harness.check (out.getCount(), 4); h = new helper (10); out = new interrupt (h, BUFFER); --0-264993701-1023923547=:33769--