PR# 19277 Post condition in {HASH_TABLE_ITERATION_CURSOR}.forth fails under certain conditions
Problem Report Summary
Submitter: finnianr
Category: EiffelBase
Priority: Low
Date: 2016/09/29
Class: Bug
Severity: Serious
Number: 19277
Release: 15.01.9.6535
Confidential: No
Status: Closed
Responsible: alexk_es
Environment: linux
Synopsis: Post condition in {HASH_TABLE_ITERATION_CURSOR}.forth fails under certain conditions
Description
The following postcondition in HASH_TABLE_ITERATION_CURSOR fails for the attached routine which is a perfectly legitimate use of a HASH_TABLE. ensure then -- from INDEXABLE_ITERATION_CURSOR cursor_index_advanced: cursor_index = old cursor_index + 1 end
To Reproduce
Run attached routine
Problem Report Interactions
The issue is fixed in rev#99869 of EiffelStudio 17.05 intermediate release.
Added test#lib044.
I have noticed that if even one element is removed from the table, the iterator post condition fails