Hi,
I am playing with Orp 1.0.8 and the Classpath native libraries from CVS.
When testing out Classpath and Orp with a small test program I get
asserting errors in Prepare.cc. Uncommenting some debugging strings
gives the following message:
No implementation in class java/net/DatagramSocketImpl for method
getOption of interface java/net/SocketOptions.
Which is strange since DatagramSocketImpl is abstract and does indeed
not implement getOption(). The (non-abstract) subclass
PlainDatagramSocketImpl implements it.
Attached is the test program. Could someone try it out with Orp and let
me know if it works?
Cheers,
Mark
import java.net.*;
public class DataTest
{
public static void main(String[] args)
{
try {
DatagramSocket client = new DatagramSocket();
System.out.println("ReceiveBuffer");
System.out.println("Orig size: " + client.getReceiveBufferSize());
client.setReceiveBufferSize(8000);
System.out.println("New size: " + client.getReceiveBufferSize());
System.out.println("SendBuffer");
System.out.println("Orig size: " + client.getSendBufferSize());
client.setSendBufferSize(9000);
System.out.println("New size: " + client.getSendBufferSize());
} catch (Exception e) {
System.out.println("Exception: " + e);
}
}
}