{"action":"created","issue":{"url":"https://api.github.com/repos/johncarl81/parceler/issues/183","repository_url":"https://api.github.com/repos/johncarl81/parceler","labels_url":"https://api.github.com/repos/johncarl81/parceler/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/johncarl81/parceler/issues/183/comments","events_url":"https://api.github.com/repos/johncarl81/parceler/issues/183/events","html_url":"https://github.com/johncarl81/parceler/issues/183","id":148094456,"number":183,"title":"ParcelerRuntimeException with Collections.singletonList","user":{"login":"jisung","id":1684081,"avatar_url":"https://avatars.githubusercontent.com/u/1684081?v=3","gravatar_id":"","url":"https://api.github.com/users/jisung","html_url":"https://github.com/jisung","followers_url":"https://api.github.com/users/jisung/followers","following_url":"https://api.github.com/users/jisung/following{/other_user}","gists_url":"https://api.github.com/users/jisung/gists{/gist_id}","starred_url":"https://api.github.com/users/jisung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jisung/subscriptions","organizations_url":"https://api.github.com/users/jisung/orgs","repos_url":"https://api.github.com/users/jisung/repos","events_url":"https://api.github.com/users/jisung/events{/privacy}","received_events_url":"https://api.github.com/users/jisung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-13T15:16:11Z","updated_at":"2016-04-13T16:16:04Z","closed_at":null,"body":"Parcels.wrap() raises the following Exception with a List created from Collections.singletonList(). Could you support these List types in the future release?\r\n\r\n```\r\norg.parceler.ParcelerRuntimeException: Unable to find generated Parcelable class for java.util.Collections$SingletonList, verify that your class is configured properly and that the Parcelable class java.util.Collections$SingletonList$$Parcelable is generated by Parceler.\r\nat org.parceler.Parcels$ParcelCodeRepository.get(Parcels.java:169)\r\nat org.parceler.Parcels.wrap(Parcels.java:84)\r\nat org.parceler.Parcels.wrap(Parcels.java:68)\r\nat jisung.github.com.parcelertest.ApplicationTest.testSingletonList(ApplicationTest.java:37)\r\nat android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)\r\nat android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)\r\nat android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)\r\nat android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1959)\r\n```\r\nit was my testing code:\r\n``` \r\npublic void testSingletonList() throws Exception {\r\n    List<String> source = Collections.singletonList(\"Hello\");\r\n    Parcelable p = Parcels.wrap(source);\r\n    List<String> unwrapped = Parcels.unwrap(p);\r\n    assertEquals(source, unwrapped);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/johncarl81/parceler/issues/comments/209528269","html_url":"https://github.com/johncarl81/parceler/issues/183#issuecomment-209528269","issue_url":"https://api.github.com/repos/johncarl81/parceler/issues/183","id":209528269,"user":{"login":"johncarl81","id":167081,"avatar_url":"https://avatars.githubusercontent.com/u/167081?v=3","gravatar_id":"","url":"https://api.github.com/users/johncarl81","html_url":"https://github.com/johncarl81","followers_url":"https://api.github.com/users/johncarl81/followers","following_url":"https://api.github.com/users/johncarl81/following{/other_user}","gists_url":"https://api.github.com/users/johncarl81/gists{/gist_id}","starred_url":"https://api.github.com/users/johncarl81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johncarl81/subscriptions","organizations_url":"https://api.github.com/users/johncarl81/orgs","repos_url":"https://api.github.com/users/johncarl81/repos","events_url":"https://api.github.com/users/johncarl81/events{/privacy}","received_events_url":"https://api.github.com/users/johncarl81/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T16:16:04Z","updated_at":"2016-04-13T16:16:04Z","body":"That is correct.  There are a quite large number of implementations of List out there and it would be impossible to support them all."}}