harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Regis Xu (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-6092) [classlib][luni] - SocketInputStream should check EOF before reading
Date Tue, 17 Feb 2009 04:35:59 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-6092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Regis Xu updated HARMONY-6092:
------------------------------

    Attachment: HARMONY-6092.diff

The patch add EOF check in read method of SocketInputStream, and alos refine the test case
to work on different platform.

> [classlib][luni] - SocketInputStream should check EOF before reading
> --------------------------------------------------------------------
>
>                 Key: HARMONY-6092
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6092
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M8
>            Reporter: Regis Xu
>             Fix For: 5.0M9
>
>         Attachments: HARMONY-6092.diff
>
>
> after patch in HARMONY-6091,  SocketTest.test_getInputStream is faild. 
> java.net.SocketException: Stream is closed
> 	at org.apache.harmony.luni.net.SocketInputStream.checkClosed(SocketInputStream.java:18)
> 	at org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:66)
> 	at org.apache.harmony.luni.tests.java.net.SocketTest.test_getInputStream(SocketTest.java:130)
> 	at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
> It seems RI check EOF before reading: if already reach EOF, read always return -1 on
Windows, but on Linux, we could never readch EOF, instead, SocketException is throwed. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message