View Issue Details

IDProjectCategoryView StatusLast Update
0006770JEDI VCLMiscellanouspublic2024-03-29 19:08
ReporterdcabaleAssigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product VersionDaily / GIT 
Target VersionFixed in Version 
Summary0006770: function TJclUnicodeStrHashSetIterator.GetString returns wrong
Descriptionfunction TJclUnicodeStrHashSetIterator.GetString returns an empty string, instead of the expected result
Steps To Reproduce1. run the attached project
2. state the returned values are an empty string, although they should be: 'first item', 'second item'
TagsIJclStrSet, TJclStrHashSet, TJclUnicodeStrHashSetIterator

Activities

dcabale

2024-03-29 19:02

reporter  

JclStrSet_Test.dpr (573 bytes)

dcabale

2024-03-29 19:08

reporter   ~0022073

proposed solution:
in function TJclUnicodeStrHashSetIterator.GetString: UnicodeString;
replace
    ABucket := FOwnHashSet.FBuckets[FBucketIndex - 1];
by
    ABucket := FOwnHashSet.FBuckets[FBucketIndex];

Issue History

Date Modified Username Field Change
2024-03-29 19:02 dcabale New Issue
2024-03-29 19:02 dcabale Tag Attached: IJclStrSet
2024-03-29 19:02 dcabale Tag Attached: TJclStrHashSet
2024-03-29 19:02 dcabale Tag Attached: TJclUnicodeStrHashSetIterator
2024-03-29 19:02 dcabale File Added: JclStrSet_Test.dpr
2024-03-29 19:08 dcabale Note Added: 0022073