[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/24618] equals method for collections
From: |
subanark at gmail dot com |
Subject: |
[Bug classpath/24618] equals method for collections |
Date: |
1 Nov 2005 18:20:15 -0000 |
------- Comment #2 from subanark at gmail dot com 2005-11-01 18:20 -------
I tested the above code in IKVM (Classpath v 0.17) and it printed null, whereas
with sun's VM (1.4,1.5,1.6b47) the result is 1.
Here is a non-generic version:
import java.util.*;
public class Test
{
public static void main(String[] args)
{
HashMap map = new HashMap();
Test test = new Test();
map.put(test,new Integer(1));
System.out.println(map.get(test));
}
public boolean equals(Object o)
{
return false;
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24618
- [Bug classpath/24618] New: equals method for collections, subanark at gmail dot com, 2005/11/01
- [Bug classpath/24618] equals method for collections, aph at gcc dot gnu dot org, 2005/11/01
- [Bug classpath/24618] equals method for collections,
subanark at gmail dot com <=
- [Bug classpath/24618] equals method for collections, aph at gcc dot gnu dot org, 2005/11/01
- [Bug classpath/24618] equals method for collections, subanark at gmail dot com, 2005/11/01
- [Bug classpath/24618] equals method for collections, aph at gcc dot gnu dot org, 2005/11/01
- [Bug classpath/24618] equals method for collections, subanark at gmail dot com, 2005/11/01
- [Bug classpath/24618] equals method for collections, aph at gcc dot gnu dot org, 2005/11/01
- [Bug classpath/24618] equals method for collections, subanark at gmail dot com, 2005/11/01