bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/30061] Comparator interface arguments get reversed


From: csm at gnu dot org
Subject: [Bug classpath/30061] Comparator interface arguments get reversed
Date: 6 Dec 2006 21:23:13 -0000


------- Comment #6 from csm at gnu dot org  2006-12-06 21:23 -------
Your comparator in that last test is still wrong. compare("s", null) ==
compare(null, "s") == 1. This breaks the contract for Comparator.compare.

Please re-read the javadocs for java.util.Comparator.


-- 

csm at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30061





reply via email to

[Prev in Thread] Current Thread [Next in Thread]