Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006366 [Squeak] Collections minor always 03-23-07 00:10 04-18-10 22:05
Reporter nicolas cellier View Status public  
Assigned To andreas
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version trunk Product Version
  Product Build
Summary 0006366: [BUG] WideString findString:startingAt: and other matchTable problems
Description self assert:
    ((WideString with: 300 asCharacter with: 400 asCharacter)
        findString: (WideString with: 300 asCharacter) startingAt: 1)
    = 1.

fails with an exception
Steps To Reproduce
Additional Information Because underlying algorithm use CaseSensitiveOrder matchTable which is single byte based...

1) either outOfBounds error should be handled
2) or a ifAbsent: block argument provided to the matchTable
3) or a more ellaborate class be used (maybe a WideCharacterDictionary like WideCharacterSet patch at http://bugs.squeak.org/view.php?id=3574) [^]

This bug is also related to http://bugs.squeak.org/view.php?id=5331 [^]
Attached Files  Collection-WideString-findSubstring-Patch.1.cs [^] (6,579 bytes) 07-27-07 22:18
 Collection-WideString-findSubstring-Test.1.cs [^] (2,017 bytes) 07-27-07 22:52

- Relationships

SYSTEM WARNING: Creating default object from empty value

SYSTEM WARNING: Creating default object from empty value

related to 0005331closed andreas 'abc' beginsWith: 'ab' asWideString (returns wrong result) 
related to 0003574closed andreas String>>findFirstInString:inSet:startingAt: does not work if character of interest is last character in String, also WideString 
related to 0006579closed nicolas cellier String>>#findLastOccuranceOfString:startingAt: isBuggedWhen: [substring first=substring last] 

- Notes
(0010941 - 61 - 67 - 67 - 67 - 67 - 67)
nicolas cellier
07-27-07 22:53

A test and patch are provided here.
Please, someone check...
 
(0011953 - 199 - 265 - 265 - 265 - 265 - 265)
nicolas cellier
03-24-08 22:08
edited on: 04-06-08 16:43

"fix begin"
Installer mantis bug: 6366 fix:'Collection-WideString-findSubstring-Patch.1.cs'.
"fix test"
Installer mantis bug: 6366 fix:'Collection-WideString-findSubstring-Test.1.cs'.
"fix end"

 
(0013324 - 65 - 71 - 231 - 231 - 231 - 231)
nicolas cellier
10-03-09 19:37

Fixed in
http://source.squeak.org/trunk/Collections-nice.151.mcz [^]
 

- Issue History
Date Modified Username Field Change
03-23-07 00:10 nicolas cellier New Issue
03-23-07 02:49 andreas Category Kernel => Collections
03-23-07 02:49 andreas Description Updated
07-27-07 22:18 nicolas cellier File Added: Collection-WideString-findSubstring-Patch.1.cs
07-27-07 22:52 nicolas cellier File Added: Collection-WideString-findSubstring-Test.1.cs
07-27-07 22:53 nicolas cellier Note Added: 0010941
03-24-08 22:08 nicolas cellier Note Added: 0011953
04-06-08 16:42 nicolas cellier Note Edited: 0011953
04-06-08 16:43 nicolas cellier Note Edited: 0011953
12-17-08 04:31 Keith_Hodges Status new => acknowledged
01-10-09 01:53 Keith_Hodges Status acknowledged => pending
01-10-09 02:27 Keith_Hodges Status pending => testing
01-10-09 03:39 Keith_Hodges Status testing => resolved
01-10-09 03:39 Keith_Hodges Fixed in Version  => 3.11
01-10-09 03:39 Keith_Hodges Resolution open => fixed
01-10-09 03:39 Keith_Hodges Assigned To  => Keith_Hodges
01-10-09 03:41 Keith_Hodges Status resolved => testing
10-03-09 19:24 nicolas cellier Relationship added related to 0005331
10-03-09 19:24 nicolas cellier Relationship added related to 0003574
10-03-09 19:33 Keith_Hodges Status testing => assigned
10-03-09 19:33 Keith_Hodges Assigned To Keith_Hodges => andreas
10-03-09 19:37 nicolas cellier Note Added: 0013324
10-03-09 20:00 nicolas cellier Status assigned => resolved
10-03-09 20:00 nicolas cellier Fixed in Version 3.11 => trunk
10-05-09 01:36 nicolas cellier Relationship added related to 0006579
04-18-10 22:05 andreas Status resolved => closed


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
80 total queries executed.
43 unique queries executed.
Powered by Mantis Bugtracker