Free cookie consent management tool by TermsFeed Policy Generator

Opened 17 years ago

Closed 17 years ago

Last modified 14 years ago

#58 closed defect (done)

Cloning of ItemList returns an ItemList<IItem>

Reported by: swagner Owned by: swagner
Priority: low Milestone: HeuristicLab 3.3.0
Component: Data Version: 3.0
Keywords: Cc:

Description

Cloning of ItemList returns an instance of ItemList<IItem> which results in an InvalidCastException when trying to cast back to ItemList.

Thanks to pspitzli for reporting this bug.

Change History (12)

comment:1 Changed 17 years ago by swagner

  • Status changed from new to assigned

comment:2 Changed 17 years ago by swagner

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r64

comment:3 follow-up: Changed 17 years ago by pspitzli

Here is may solution. Maybe it still is good for something. I tried to reduce code dupplication, by putting the for to copy the items into a seperate method.

comment:4 Changed 17 years ago by swagner

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:5 Changed 17 years ago by swagner

  • Status changed from reopened to new

comment:6 Changed 17 years ago by swagner

  • Status changed from new to assigned

comment:7 in reply to: ↑ 3 Changed 17 years ago by swagner

Replying to pspitzli:

Here is may solution. Maybe it still is good for something. I tried to reduce code dupplication, by putting the for to copy the items into a seperate method.

Thanks a lot for your solution. Using a separate method for cloning the elements is more elegant than the straight forward solution I implemented. I will merge your solution into the trunk. Thanks again!

comment:8 Changed 17 years ago by swagner

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed again by adding patch of pspitzli in r68

comment:9 Changed 17 years ago by swagner

Removed attached patch again as it had been merged into the trunk in r68.

comment:10 Changed 16 years ago by swagner

  • Milestone changed from 3.0 to Iteration 0

Milestone 3.0 deleted

comment:11 Changed 14 years ago by swagner

  • Milestone changed from Iteration 0 to Current

Milestone Iteration 0 deleted

comment:11 Changed 14 years ago by swagner

  • Milestone changed from Current to HeuristicLab 3.3.0

Milestone Current deleted

Note: See TracTickets for help on using tickets.