{"action":"created","issue":{"url":"https://api.github.com/repos/cogneco/ooc-kean/issues/628","labels_url":"https://api.github.com/repos/cogneco/ooc-kean/issues/628/labels{/name}","comments_url":"https://api.github.com/repos/cogneco/ooc-kean/issues/628/comments","events_url":"https://api.github.com/repos/cogneco/ooc-kean/issues/628/events","html_url":"https://github.com/cogneco/ooc-kean/issues/628","id":113808032,"number":628,"title":"LinkedList class from SDK is suspicious","user":{"login":"sebastianbaginski","id":13517893,"avatar_url":"https://avatars.githubusercontent.com/u/13517893?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastianbaginski","html_url":"https://github.com/sebastianbaginski","followers_url":"https://api.github.com/users/sebastianbaginski/followers","following_url":"https://api.github.com/users/sebastianbaginski/following{/other_user}","gists_url":"https://api.github.com/users/sebastianbaginski/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianbaginski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianbaginski/subscriptions","organizations_url":"https://api.github.com/users/sebastianbaginski/orgs","repos_url":"https://api.github.com/users/sebastianbaginski/repos","events_url":"https://api.github.com/users/sebastianbaginski/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianbaginski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cogneco/ooc-kean/labels/bug","name":"bug","color":"881111"},{"url":"https://api.github.com/repos/cogneco/ooc-kean/labels/help%20wanted","name":"help wanted","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-28T12:17:48Z","updated_at":"2015-10-29T07:15:30Z","closed_at":null,"body":"When working on https://github.com/cogneco/ooc-kean/pull/627 I got crashes related to LinkedList. Exception backtraces were kept in a LinkedList, it crashed every time when I tried to iterate over the list and call `free` on the elements inside.\r\nThe loop looked like this\r\n```ooc\r\nlist := LinkedList<Something>\r\nsize := list size\r\nwhile (size > 0) {\r\n    element := list head\r\n    if (element)\r\n        element free()\r\n    list removeAt(0)\r\n    --size\r\n}\r\n```\r\nI didn't felt like digging into it, I just changed the container type to Stack and it worked.\r\nCould be nice to write unit tests.\r\nBtw. is there anything wrong with the code above ?"},"comment":{"url":"https://api.github.com/repos/cogneco/ooc-kean/issues/comments/152100281","html_url":"https://github.com/cogneco/ooc-kean/issues/628#issuecomment-152100281","issue_url":"https://api.github.com/repos/cogneco/ooc-kean/issues/628","id":152100281,"user":{"login":"sebastianbaginski","id":13517893,"avatar_url":"https://avatars.githubusercontent.com/u/13517893?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastianbaginski","html_url":"https://github.com/sebastianbaginski","followers_url":"https://api.github.com/users/sebastianbaginski/followers","following_url":"https://api.github.com/users/sebastianbaginski/following{/other_user}","gists_url":"https://api.github.com/users/sebastianbaginski/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianbaginski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianbaginski/subscriptions","organizations_url":"https://api.github.com/users/sebastianbaginski/orgs","repos_url":"https://api.github.com/users/sebastianbaginski/repos","events_url":"https://api.github.com/users/sebastianbaginski/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianbaginski/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T07:15:30Z","updated_at":"2015-10-29T07:15:30Z","body":"So I just don't know if it's worth to fix a class which we actually never use (after changes in `Exception`)."}}