{"action":"created","issue":{"url":"https://api.github.com/repos/sockeqwe/fragmentargs/issues/60","repository_url":"https://api.github.com/repos/sockeqwe/fragmentargs","labels_url":"https://api.github.com/repos/sockeqwe/fragmentargs/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/sockeqwe/fragmentargs/issues/60/comments","events_url":"https://api.github.com/repos/sockeqwe/fragmentargs/issues/60/events","html_url":"https://github.com/sockeqwe/fragmentargs/issues/60","id":159667056,"number":60,"title":"CastedArrayListArgsBundler gives compilation errors.","user":{"login":"fmnstr","id":1969132,"avatar_url":"https://avatars.githubusercontent.com/u/1969132?v=3","gravatar_id":"","url":"https://api.github.com/users/fmnstr","html_url":"https://github.com/fmnstr","followers_url":"https://api.github.com/users/fmnstr/followers","following_url":"https://api.github.com/users/fmnstr/following{/other_user}","gists_url":"https://api.github.com/users/fmnstr/gists{/gist_id}","starred_url":"https://api.github.com/users/fmnstr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmnstr/subscriptions","organizations_url":"https://api.github.com/users/fmnstr/orgs","repos_url":"https://api.github.com/users/fmnstr/repos","events_url":"https://api.github.com/users/fmnstr/events{/privacy}","received_events_url":"https://api.github.com/users/fmnstr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sockeqwe/fragmentargs/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/sockeqwe/fragmentargs/milestones/4","html_url":"https://github.com/sockeqwe/fragmentargs/milestones/4.0","labels_url":"https://api.github.com/repos/sockeqwe/fragmentargs/milestones/4/labels","id":1617049,"number":4,"title":"4.0","description":"","creator":{"login":"sockeqwe","id":583598,"avatar_url":"https://avatars.githubusercontent.com/u/583598?v=3","gravatar_id":"","url":"https://api.github.com/users/sockeqwe","html_url":"https://github.com/sockeqwe","followers_url":"https://api.github.com/users/sockeqwe/followers","following_url":"https://api.github.com/users/sockeqwe/following{/other_user}","gists_url":"https://api.github.com/users/sockeqwe/gists{/gist_id}","starred_url":"https://api.github.com/users/sockeqwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sockeqwe/subscriptions","organizations_url":"https://api.github.com/users/sockeqwe/orgs","repos_url":"https://api.github.com/users/sockeqwe/repos","events_url":"https://api.github.com/users/sockeqwe/events{/privacy}","received_events_url":"https://api.github.com/users/sockeqwe/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":2,"state":"open","created_at":"2016-03-02T06:12:09Z","updated_at":"2016-06-10T16:03:55Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-06-10T15:57:43Z","updated_at":"2016-06-10T16:04:00Z","closed_at":null,"body":"I get the following error when trying to use CastedArrayListArgsBundler as a bundler for an Arraylist of parcelable object.\r\n\r\n`Error:(32, 35) error: incompatible types: List<CAP#1> cannot be converted to List<Foo>\r\nwhere CAP#1 is a fresh type-variable:\r\nCAP#1 extends Parcelable from capture of ? extends Parcelable`\r\n\r\nin my fragment\r\n\r\n`    @Arg(bundler = CastedArrayListArgsBundler.class) List<Foo> foobar;`\r\n\r\nand my foo class \r\n\r\n`public class Foo implements Parcelable {\r\n        String happy;\r\n\r\n\r\n        @Override\r\n        public int describeContents() {\r\n            return 0;\r\n        }\r\n\r\n        @Override\r\n        public void writeToParcel(Parcel dest, int flags) {\r\n            dest.writeString(this.happy);\r\n        }\r\n\r\n        public Foo() {\r\n        }\r\n\r\n        protected Foo(Parcel in) {\r\n            this.happy = in.readString();\r\n        }\r\n\r\n        public static final Parcelable.Creator<Foo> CREATOR = new Parcelable.Creator<Foo>() {\r\n            @Override\r\n            public Foo createFromParcel(Parcel source) {\r\n                return new Foo(source);\r\n            }\r\n\r\n            @Override\r\n            public Foo[] newArray(int size) {\r\n                return new Foo[size];\r\n            }\r\n        };\r\n    }`\r\n\r\nthe error is here in the Builder class\r\n\r\n`  public static final void injectArguments(@NonNull InterestRateDetailsFragment fragment) {\r\n    Bundle args = fragment.getArguments();\r\n    if (args == null) {\r\n      throw new IllegalStateException(\"No arguments set. Have you setup this Fragment with the corresponding FragmentArgs Builder? \");\r\n    }\r\n\r\n    if (!args.containsKey(\"com.hannesdorfmann.fragmentargs.custom.bundler.2312A478rand.foobar\")) {\r\n      throw new IllegalStateException(\"required argument foobar is not set\");\r\n    }\r\n    fragment.foobar = bundler1.get(\"foobar\", args); //<-------error here\r\n  }`\r\n\r\nusing latest gradle and build tools"},"comment":{"url":"https://api.github.com/repos/sockeqwe/fragmentargs/issues/comments/225224217","html_url":"https://github.com/sockeqwe/fragmentargs/issues/60#issuecomment-225224217","issue_url":"https://api.github.com/repos/sockeqwe/fragmentargs/issues/60","id":225224217,"user":{"login":"sockeqwe","id":583598,"avatar_url":"https://avatars.githubusercontent.com/u/583598?v=3","gravatar_id":"","url":"https://api.github.com/users/sockeqwe","html_url":"https://github.com/sockeqwe","followers_url":"https://api.github.com/users/sockeqwe/followers","following_url":"https://api.github.com/users/sockeqwe/following{/other_user}","gists_url":"https://api.github.com/users/sockeqwe/gists{/gist_id}","starred_url":"https://api.github.com/users/sockeqwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sockeqwe/subscriptions","organizations_url":"https://api.github.com/users/sockeqwe/orgs","repos_url":"https://api.github.com/users/sockeqwe/repos","events_url":"https://api.github.com/users/sockeqwe/events{/privacy}","received_events_url":"https://api.github.com/users/sockeqwe/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T16:04:00Z","updated_at":"2016-06-10T16:04:00Z","body":"Thanks for reporting. It seems that this is a bug"}}
{"actor":{"display_login":"sockeqwe"}}