Java Sockets do not know on creation if they will be used for IPv6 or IPv4, so the gnu::java::net::PlainSocketImpl::create method should use PF_INET6 instead of AF_INET. The other methods - bind and connect - must then translate IPv4 addresses to IPv4-in-IPv6. Behavior with HAVE_INET6 not defined should probably not be changed. The code is in libjava/gnu/java/net/natPlainSocketImplPosix.cc .
-- Summary: libgcj native socket code does not support IPv6 Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: cjw at daneel dot dyndns dot org GCC host triplet: powerpc-mandriva-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27066