Name: nt126004 Date: 09/17/2001
java version "1.4.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)
When a service listens for packets from multiple clients on one or more
DatagramChannels, DatagramChannel.receive() will incorrectly report the source
address and port of the packet. After the first packet is received, the method
will falsely report that all future packets received as having come from the
same address as the first packet. This occurs when you reuse a single
DatagramChannel to listen for packets from multiple senders; it ALSO occurs
when you have multiple and distinct DatagramChannels for each possible sender.
This behavior strongly suggests that somewhere in the DatagramChannel
implementation a static variable (common to all DatagramChannels) exists that
is not properly being refreshed upon receipt of new incoming packets.
[Test code attached]
(Review ID: 131714)
======================================================================