[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/34798] New: VMChannel.accept() does not set kind field pr
From: |
freebeans at xqb dot biglobe dot ne dot jp |
Subject: |
[Bug classpath/34798] New: VMChannel.accept() does not set kind field properly |
Date: |
15 Jan 2008 14:11:23 -0000 |
Current implementation:
---
public VMChannel accept() throws IOException
{
int new_fd = accept(nfd.getNativeFD());
if (new_fd == -1) // non-blocking accept had no pending connection
return null;
return new VMChannel(new_fd);
}
---
It does not set 'kind' field of new VMChannel object. I think it should be:
---
public VMChannel accept() throws IOException
{
int new_fd = accept(nfd.getNativeFD());
if (new_fd == -1) // non-blocking accept had no pending connection
return null;
VMChannel result = new VMChannel(new_fd);
result.kind = Kind.SOCK_STREAM;
return result;
}
--
Summary: VMChannel.accept() does not set kind field properly
Product: classpath
Version: 0.96.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: freebeans at xqb dot biglobe dot ne dot jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34798
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/34798] New: VMChannel.accept() does not set kind field properly,
freebeans at xqb dot biglobe dot ne dot jp <=