{"action":"created","issue":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/1777","labels_url":"https://api.github.com/repos/scala-js/scala-js/issues/1777/labels{/name}","comments_url":"https://api.github.com/repos/scala-js/scala-js/issues/1777/comments","events_url":"https://api.github.com/repos/scala-js/scala-js/issues/1777/events","html_url":"https://github.com/scala-js/scala-js/issues/1777","id":92022969,"number":1777,"title":"Bug with java.util.LinkedList.size when larger than Int.MAX_VALUE.","user":{"login":"nicolasstucki","id":3648029,"avatar_url":"https://avatars.githubusercontent.com/u/3648029?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasstucki","html_url":"https://github.com/nicolasstucki","followers_url":"https://api.github.com/users/nicolasstucki/followers","following_url":"https://api.github.com/users/nicolasstucki/following{/other_user}","gists_url":"https://api.github.com/users/nicolasstucki/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasstucki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasstucki/subscriptions","organizations_url":"https://api.github.com/users/nicolasstucki/orgs","repos_url":"https://api.github.com/users/nicolasstucki/repos","events_url":"https://api.github.com/users/nicolasstucki/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasstucki/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scala-js/scala-js/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/scala-js/scala-js/labels/missing%20javalib","name":"missing javalib","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-30T08:20:58Z","updated_at":"2015-06-30T15:26:21Z","closed_at":null,"body":"If the size of the `LinkedList` is larger than `Int.MAX_VALUE` the then `size` should return `Int.MAX_VALUE`. \r\n\r\nThe current implementation uses a `var _size: Int` to track the size and updates it with `_size += 1` which loops back to `Int.MIN_VALUE` when the list grows to a size of `Int.MAX_VALUE` + 1."},"comment":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/comments/117228159","html_url":"https://github.com/scala-js/scala-js/issues/1777#issuecomment-117228159","issue_url":"https://api.github.com/repos/scala-js/scala-js/issues/1777","id":117228159,"user":{"login":"andreaTP","id":5792097,"avatar_url":"https://avatars.githubusercontent.com/u/5792097?v=3","gravatar_id":"","url":"https://api.github.com/users/andreaTP","html_url":"https://github.com/andreaTP","followers_url":"https://api.github.com/users/andreaTP/followers","following_url":"https://api.github.com/users/andreaTP/following{/other_user}","gists_url":"https://api.github.com/users/andreaTP/gists{/gist_id}","starred_url":"https://api.github.com/users/andreaTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreaTP/subscriptions","organizations_url":"https://api.github.com/users/andreaTP/orgs","repos_url":"https://api.github.com/users/andreaTP/repos","events_url":"https://api.github.com/users/andreaTP/events{/privacy}","received_events_url":"https://api.github.com/users/andreaTP/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T15:26:21Z","updated_at":"2015-06-30T15:26:21Z","body":"actually ```addLast``` and ```addFirst``` doesn't make any check on size...\r\n\r\nbtw I will check which number generates my jvm on int overloads\r\n"}}