🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1369

HashMap replacing entries

#1369
From: Andrew van der Voort
Date: Tue, 05 Feb 2002 01:55
21 lines
1618 bytes
Hi. I am building a HashMap of parameters to pass to a report generator.

I add the following entries to the HashMap:

HashMap parameterList = new HasMap();
parameterList.put("severityCodes", severityCodes);
parameterList.put("statusIds", statusIds);
parameterList.put("typeIds", typeIds);
parameterList.put("productIds", productIds);
parameterList.put("assignedToIds", assignedToIds);

where the values are String objects with some comma delimited numbers.
The first three puts work fine, but the fourth put replaces the second
entry, and the fifth put replaces the first entry.

I have verified that the hashCodes generated by the 5 keys result in
different values. What's going on?

Thanks

Andrew
Technical Details
Message-ID: <3c5f384b$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!xmission!news-out.spamkiller.net!propagator-maxim!news-in.spamkiller.net!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,89a2c159d63ecd88,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-02-04 17:52:12 PST
From: "Andrew van der Voort" <andrew@astarte.co.nz>
Newsgroups: borland.public.jbuilder.java.api
Subject: HashMap replacing entries
Date: Tue, 5 Feb 2002 14:55:10 +1300
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 203.97.231.58
Message-ID: <3c5f384b$1_1@dnews>
X-Trace: dnews 1012873291 203.97.231.58 (4 Feb 2002 17:41:31 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!xmission!news-out.spamkiller.net!propagator-maxim!news-in.spamkiller.net!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews