harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-2943) [classlib][luni]SocketImpl.shutdownInput/Output leads to VM crash
Date Mon, 08 Jan 2007 18:34:29 GMT

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

Tim Ellison reassigned HARMONY-2943:
------------------------------------

    Assignee: Tim Ellison

> [classlib][luni]SocketImpl.shutdownInput/Output leads to VM crash
> -----------------------------------------------------------------
>
>                 Key: HARMONY-2943
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2943
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>         Assigned To: Tim Ellison
>         Attachments: patch.diff
>
>
> Following testcase throws IOException on RI whereas leads to vm crash on Harmony
> public void test() throws IOException {
>         MySocketImpl s = new MySocketImpl();
>         s.test();
>     }
>     class MySocketImpl extends SocketImpl {
>         public void test() throws IOException {
>             shutdownInput();
>         }
>         @Override
>         protected void accept(SocketImpl newSocket) throws IOException {
>         }
>         @Override
>         protected int available() throws IOException {
>             return 0;
>         }
>         @Override
>         protected void bind(InetAddress address, int port) throws IOException {
>         }
>         @Override
>         protected void close() throws IOException {
>         }
>         @Override
>         protected void connect(String host, int port) throws IOException {
>         }
>         @Override
>         protected void connect(InetAddress address, int port)
>                 throws IOException {
>         }
>         @Override
>         protected void connect(SocketAddress remoteAddr, int timeout)
>                 throws IOException {
>         }
>         @Override
>         protected void create(boolean isStreaming) throws IOException {
>         }
>         @Override
>         protected InputStream getInputStream() throws IOException {
>             return null;
>         }
>         @Override
>         protected OutputStream getOutputStream() throws IOException {
>             return null;
>         }
>         @Override
>         protected void listen(int backlog) throws IOException {
>         }
>         @Override
>         protected void sendUrgentData(int value) throws IOException {
>         }
>         public Object getOption(int optID) throws SocketException {
>             return null;
>         }
>         public void setOption(int optID, Object val) throws SocketException {
>         }
>     }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message