java_net_PlainDatagramSocketImpl_receive

Date view Thread view Subject view Author view

From: Godmar Back (gback@cs.utah.edu)
Date: Tue Dec 08 1998 - 11:53:42 EST


 you removed I fix I'd put a year ago or so:
namely, java_net_PlainDatagramSocketImpl_receive had to deal with the
fact that unhand(pkt)->address may be 0.

I looked at java.net.DatagramPacket to see whether the java code now
guarantees that it's not null.

It mostly does, except when a user constructs a DatagramPacket with
a null InetAddress.

In general, we should guard against NullPOinterExceptions in native code.

        - Godmar


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:08 EDT