Bug 28576

Summary: PlainDatagramSocketImpl::connect: not implemented yet
Product: gcc Reporter: Miguel Filho <miguel>
Component: libgcjAssignee: Tom Tromey <tromey>
Status: RESOLVED FIXED    
Severity: normal CC: gcc-bugs, java-prs
Priority: P3    
Version: 4.2.0   
Target Milestone: 4.2.0   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed: 2006-08-06 21:35:42

Description Miguel Filho 2006-08-02 19:53:12 UTC
Using snapshot 20060729.

./configure --prefix=/usr/local/ --program-suffix=-4.2 --enable-languages=java

No compilation errors.

Using Debian Sarge 3.1

smtp:/home/passaro# gcc --version
gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)

Using dnsjava, I got this error:

Exception in thread "Handler" java.lang.InternalError: PlainDatagramSocketImpl::connect: not implemented yet
   at gnu.java.net.PlainDatagramSocketImpl.connect(natPlainDatagramSocketImpl.cc:155)
   at java.net.DatagramSocket.connect(DatagramSocket.java:512)
   at java.net.DatagramSocket.connect(DatagramSocket.java:734)
   at gnu.java.nio.DatagramChannelImpl.connect(DatagramChannelImpl.java:124)
   at org.xbill.DNS.UDPClient.connect(UDPClient.java:26)
   at org.xbill.DNS.UDPClient.sendrecv(UDPClient.java:68)
   at org.xbill.DNS.SimpleResolver.send(SimpleResolver.java:262)
   at org.xbill.DNS.ExtendedResolver$Resolution.start(ExtendedResolver.java:93)
   at org.xbill.DNS.ExtendedResolver.send(ExtendedResolver.java:364)
   at org.xbill.DNS.Lookup.lookup(Lookup.java:450)
   at org.xbill.DNS.Lookup.resolve(Lookup.java:502)
   at org.xbill.DNS.Lookup.run(Lookup.java:516)
   at org.apache.james.jspf.DNSServiceXBillImpl.getTXTRecords(DNSServiceXBillImpl.java:119)
   at org.apache.james.jspf.DNSServiceXBillImpl.getSpfRecord(DNSServiceXBillImpl.java:66)
   at org.apache.james.jspf.SPF.checkSPF(SPF.java:146)
   at org.apache.james.jspf.SPF.checkSPF(SPF.java:87)
   at jpolicy.rule.SPFCheck.runCheck(SPFCheck.java:17)
   at jpolicy.PolicyProtocol.runRules(PolicyProtocol.java:274)
   at jpolicy.PolicyProtocol.run(PolicyProtocol.java:180)
Comment 1 Tom Tromey 2006-08-06 21:35:42 UTC
I'm testing a patch.
Comment 2 Tom Tromey 2006-08-06 21:52:14 UTC
Subject: Bug 28576

Author: tromey
Date: Sun Aug  6 21:52:04 2006
New Revision: 115976

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115976
Log:
	PR libgcj/28576:
	* gnu/java/net/natPlainDatagramSocketImplPosix.cc (connect):
	Implemented.
	(disconnect): Likewise.
	(send): Handle already-connected case.

Modified:
    trunk/libjava/ChangeLog
    trunk/libjava/gnu/java/net/natPlainDatagramSocketImplPosix.cc

Comment 3 Tom Tromey 2006-08-06 21:52:37 UTC
Fix checked in.