Anonymous | Login | 01-16-2021 15:18 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0007434 | [Squeak] System | minor | always | 12-30-09 06:13 | 04-18-10 21:57 | ||||
Reporter | Kirtai | View Status | public | ||||||
Assigned To | laza | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | trunk | ||||||
Summary | 0007434: LRUCache>>#printOn: causes a ZeroDivide exception if the cache is not yet used. | ||||||||
Description |
When I evaluated "Object allSubInstances select: [:object | object asString ~= object printString]" it triggered a ZeroDivide exception on LRUCache>>#printOn: That method contains the line "(hits / calls) asFloat asString" which of course fails if calls is zero for a not yet used cache. A simple fix would be to check for calls being zero. |
||||||||
Additional Information | |||||||||
Attached Files |
![]() |
||||||||
|
Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
50 total queries executed. 38 unique queries executed. |