[mapguide-trac] #352: MgDuplicateObjectException is not thrown when
inserting duplicated object using MgStringCollection:: Add() .
MapGuide Open Source
trac_mapguide at osgeo.org
Mon Dec 3 00:58:22 EST 2007
#352: MgDuplicateObjectException is not thrown when inserting duplicated object
using MgStringCollection:: Add() .
--------------------------+-------------------------------------------------
Reporter: jessicacao | Owner: Tom Fukushima
Type: defect | Status: new
Priority: medium | Milestone: 2.0
Component: General | Version:
Severity: major | Keywords: MgStringCollection::Add
External_id: 985046 |
--------------------------+-------------------------------------------------
MgDuplicateObjectException is not thrown when inserting duplicated object
using MgStringCollection:: Add() .
Step to recur:[[BR]]
1. Construct a MgStringCollection and add a string object into
it.[[BR]]
2. Add the same string object using Add();[[BR]]
Sample code: [[BR]]
MgStringCollection strColl = new MgStringCollection();[[BR]]
string str1 = "string1";[[BR]]
strColl.Add(str1);[[BR]]
// MgDuplicateObjectException expected [[BR]]
strColl.Add(str1); [[BR]]
Expect result: MgDuplicateObjectException[[BR]]
Actual result: No exception thrown[[BR]]
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/352>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list