You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "George Harley (JIRA)" <ji...@apache.org> on 2006/07/14 13:23:16 UTC
[jira] Resolved: (HARMONY-873) [classlib][luni]
java.net.Socket.getOutputStream should throw SocketException if output has
been shutdown by invoking shutdownOutputStream().
[ http://issues.apache.org/jira/browse/HARMONY-873?page=all ]
George Harley resolved HARMONY-873.
-----------------------------------
Resolution: Fixed
Hi Andrew,
Changes committed in revision 421870. Please could you verify that everything has been applied as expected.
Many thanks for this fix.
Best regards,
George
> [classlib][luni] java.net.Socket.getOutputStream should throw SocketException if output has been shutdown by invoking shutdownOutputStream().
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-873
> URL: http://issues.apache.org/jira/browse/HARMONY-873
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Andrew Zhang
> Assigned To: George Harley
> Attachments: luni.diff
>
>
> java.net.Socket.getOutputStream should throw SocketException if output has been shutdown by invoking shutdownOutputStream().
> Following test reproduces the bug:
> public void test_getOutputStream() throws Exception {
> ServerSocket ss = new ServerSocket(2223);
> Socket s = new Socket("127.0.0.1", 2223);
> ss.accept();
> s.shutdownOutput();
> try {
> s.getOutputStream();
> fail("should throw SocketException");
> } catch (SocketException e) {
> // expected
> }
> }
> The test passes against RI and fails against Harmony.
> I'll upload a patch to fix this problem soon.
> Best regards,
> Andrew
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira