[Rock-dev] [rock] #243: Typelib:ArrayType: raw_get returns invalid/deleted object if array shrinks

rock noreply at opendfki.de
Wed Mar 13 19:21:48 CET 2013


#243: Typelib:ArrayType: raw_get returns invalid/deleted object if array shrinks
----------------------------+-----------------------------------
 Reporter:  Alexander.Duda  |      Owner:  rock-dev-mailing-list
     Type:  defect          |     Status:  new
 Priority:  critical        |  Milestone:
Component:  base            |   Keywords:
----------------------------+-----------------------------------
 If an ArrayType shrinks and new elements are added new internal objects
 are created. This change is not be reflected on the ruby side because the
 old elements are cached by raw_get.

 workaround:
 sample.enum_for(:raw_each).to_a

-- 
Ticket URL: <https://rock.opendfki.de/ticket/243>
rock <https://rock.opendfki.de>
rock: the robot construction kit


More information about the Rock-dev mailing list