Issue 3453 in pharo: Primitive failed on ByteString>>copyFrom:To:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 3453 in pharo: Primitive failed on ByteString>>copyFrom:To:

pharo
Status: Accepted
Owner: laurent.laffont

New issue 3453 by laurent.laffont: Primitive failed on  
ByteString>>copyFrom:To:
http://code.google.com/p/pharo/issues/detail?id=3453

Pharo image: 1.2 beta 2
Pharo core version: 12281

Steps to reproduce:
1. ProfStef go.
2. put cursor after the dot of ProfStef next. CMD-D
3. idem in next screen
BOOM - primitiveFailed on ByteString>>copyFrom:To: because start > stop


(Fix to follow)


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3453 in pharo: Primitive failed on ByteString>>copyFrom:To:

pharo
Updates:
        Cc: stephane.ducasse

Comment #1 on issue 3453 by laurent.laffont: Primitive failed on  
ByteString>>copyFrom:To:
http://code.google.com/p/pharo/issues/detail?id=3453

In Inbox:  
SLICE-Issue-3453-Primitive-failed-on-ByteStringcopyFromTo-LaurentLaffont.1

Tests + fix on Text: add check if start > stop and start > size.

So one can write someText copyFrom: 10 to: 5, it will behave like  
copyFrom:5 to:10.

With my little knowledge this fix may be naive:
- shouldn't it be in SequenceableCollection ?
- this may hide a real bug in the code that handle text selection in  
morphic / shout


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3453 in pharo: Primitive failed on ByteString>>copyFrom:To:

pharo
Updates:
        Status: Duplicate
        Cc: -stephane.ducasse
        Mergedinto: 3472

Comment #2 on issue 3453 by laurent.laffont: Primitive failed on  
ByteString>>copyFrom:To:
http://code.google.com/p/pharo/issues/detail?id=3453

duplicate of #3472