diff options
author | jfrijters <jfrijters> | 2007-08-22 15:44:06 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2007-08-22 15:44:06 +0400 |
commit | caa5e544b320bc29bc643d0f3175fef9636ea516 (patch) | |
tree | bb50fba0e97c29494037ad1867a78e2fd0b37686 /openjdk/map.xml | |
parent | f1971c237643cc441a2d0c53ce4e5034742aad6a (diff) |
- Added workaround for java.net.DatagramSocket.receive() bug.
- Removed unused code.
Diffstat (limited to 'openjdk/map.xml')
-rw-r--r-- | openjdk/map.xml | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/openjdk/map.xml b/openjdk/map.xml index b357cb3e..9090264f 100644 --- a/openjdk/map.xml +++ b/openjdk/map.xml @@ -1202,6 +1202,19 @@ </body> </method> </class> + <class name="java.net.DatagramSocket"> + <method name="receive" sig="(Ljava.net.DatagramPacket;)V"> + <!-- HACK this is to work around a bug in DatagramSocket. It compares an Inet4Address instance with an InetAddress instance, + but the Inet4Address.equals(Object obj) method never returns true if obj isn't also an Inet4Address. + Normally this code path in DatagramSocket.receive() isn't used, but since we don't supported DatagramSocketImpl.connect() + we do end up here. --> + <replace-method-call class="java.net.InetAddress" name="equals" sig="(Ljava.lang.Object;)Z"> + <code> + <call class="java.net.PlainDatagramSocketImpl" name="equalsHack" sig="(Ljava.net.InetAddress;Ljava.net.InetAddress;)Z" /> + </code> + </replace-method-call> + </method> + </class> <class name="java.util.concurrent.locks.AbstractQueuedSynchronizer"> <method name="compareAndSetState" sig="(II)Z"> <body> @@ -1533,23 +1546,6 @@ </replace-method-call> </method> </class> - <class name="gnu.java.net.PlainDatagramSocketImpl"> - <method name="setDatagramPacketLength" sig="(Ljava.net.DatagramPacket;I)V"> - <body> - <ldarg_0 /> - <ldarg_1 /> - <stfld class="java.net.DatagramPacket" name="length" sig="I" /> - <ret /> - </body> - </method> - <method name="getDatagramPacketBufferLength" sig="(Ljava.net.DatagramPacket;)I"> - <body> - <ldarg_0 /> - <ldfld class="java.net.DatagramPacket" name="maxlen" sig="I" /> - <ret /> - </body> - </method> - </class> <class name="java.util.concurrent.atomic.AtomicReference"> <method name="compareAndSet" sig="(Ljava.lang.Object;Ljava.lang.Object;)Z"> <body> |