View Issue Details

IDProjectCategoryView StatusLast Update
0020594Open CASCADEOCCT:Foundation Classespublic2012-01-11 16:41
ReportermsvAssigned Tomsv 
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
OSAll 
Fixed in Version6.3.1 
Summary0020594: Bug in TColStd_PackedMapOfInteger regarding storage of negative values
DescriptionWhen a negative key is put in TColStd_PackedMapOfInteger it is available in the
container by iteration, but there are several incorrect scenarios of behavior:

 - method Add with the same value always returns true, as if this key is being
put to the map for the first time, and the map extent incremented each time.
 - method Contains says there is no such key in the map.
 - method Remove does not remove such key from the map.
 - boolean methods work incorrectly as well.

The test program is attached here.
Additional information
and documentation updates
Documentation remark, added by MSV 2008-12-12 10:20:26:

Improvements:
Foundation classes.
The class TColStd_PackedMapOfInteger had a bug leading to incorrect work with
negative keys. This bug has been fixed.
TagsNo tags attached.
Test case number

Attached Files

  • Test.cxx (1,189 bytes)
  • OCC20594_patch_v1.tar.gz (5,616 bytes)

Activities

2008-11-01 09:34

 

Test.cxx (1,189 bytes)

2008-11-01 11:07

 

OCC20594_patch_v1.tar.gz (5,616 bytes)

Issue History

Date Modified Username Field Change
2008-12-12 11:53 bugmaster Assigned To bugmaster => msv
2008-12-12 11:53 bugmaster Status new => assigned
2008-12-12 11:53 bugmaster Status assigned => resolved
2009-05-19 19:12 mkv Status resolved => tested
2009-05-19 20:36 bugmaster Status tested => verified
2009-06-24 19:32 bugmaster Status verified => closed
2009-06-24 19:32 bugmaster Resolution @0@ => fixed
2011-08-02 11:23 bugmaster Category OCCT:FDC => OCCT:Foundation Classes
2012-01-11 16:41 atp Description Updated
2012-01-11 16:41 atp Additional Information Updated