Hi,
byte value comparisons in Java are evil. Adding a cast to a byte of the right
value fixes the Inet6Address.isMulticastAddress method.

ChangeLog:
2006-10-25  Robert Schuster  <[EMAIL PROTECTED]>

        * java/net/Inet6Address.java:
        (isMulticastAddress): Fixed check.


cya
Robert
Index: java/net/Inet6Address.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/net/Inet6Address.java,v
retrieving revision 1.16
diff -u -r1.16 Inet6Address.java
--- java/net/Inet6Address.java	11 Sep 2006 11:44:24 -0000	1.16
+++ java/net/Inet6Address.java	24 Oct 2006 23:45:19 -0000
@@ -121,7 +121,7 @@
    */
   public boolean isMulticastAddress()
   {
-    return ipaddress[0] == 0xFF;
+    return ipaddress[0] == (byte) 0xFF;
   }
 
   /**

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to