Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 20083 invoked from network); 24 Apr 2008 14:20:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Apr 2008 14:20:57 -0000 Received: (qmail 98599 invoked by uid 500); 24 Apr 2008 14:20:59 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 98501 invoked by uid 500); 24 Apr 2008 14:20:59 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 98490 invoked by uid 99); 24 Apr 2008 14:20:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2008 07:20:59 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2008 14:20:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 39099234C100 for ; Thu, 24 Apr 2008 07:17:22 -0700 (PDT) Message-ID: <1536553912.1209046642232.JavaMail.jira@brutus> Date: Thu, 24 Apr 2008 07:17:22 -0700 (PDT) From: "Mark Hindess (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-5788) [classlib][util] TreeMap.entrySet().contains() returns true for entries with null value MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [classlib][util] TreeMap.entrySet().contains() returns true for entries with null value --------------------------------------------------------------------------------------- Key: HARMONY-5788 URL: https://issues.apache.org/jira/browse/HARMONY-5788 Project: Harmony Issue Type: Bug Components: Classlib Reporter: Mark Hindess The following code illustrates the problem: import java.util.TreeMap; public class TestTreeMap { public static void main(String[] args) { TreeMap master = new TreeMap(); master.put("one", "1"); master.put("null", null); TreeMap map = new TreeMap(); Object[] element = master.entrySet().toArray(); for (int i = 0; i < element.length ; i++) { System.out.println("Contains entry " + element[i] + "? == " + map.entrySet().contains(element[i])); } } } On harmony, the output is: Contains entry null=null? == true Contains entry one=1? == false on the RI, the output is: Contains entry null=null? == false Contains entry one=1? == false -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.