[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
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
|