{"action":"created","issue":{"url":"https://api.github.com/repos/clojure-android/neko/issues/57","labels_url":"https://api.github.com/repos/clojure-android/neko/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/clojure-android/neko/issues/57/comments","events_url":"https://api.github.com/repos/clojure-android/neko/issues/57/events","html_url":"https://github.com/clojure-android/neko/issues/57","id":114685926,"number":57,"title":":constructor-args with primitive values","user":{"login":"roti","id":919724,"avatar_url":"https://avatars.githubusercontent.com/u/919724?v=3","gravatar_id":"","url":"https://api.github.com/users/roti","html_url":"https://github.com/roti","followers_url":"https://api.github.com/users/roti/followers","following_url":"https://api.github.com/users/roti/following{/other_user}","gists_url":"https://api.github.com/users/roti/gists{/gist_id}","starred_url":"https://api.github.com/users/roti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roti/subscriptions","organizations_url":"https://api.github.com/users/roti/orgs","repos_url":"https://api.github.com/users/roti/repos","events_url":"https://api.github.com/users/roti/events{/privacy}","received_events_url":"https://api.github.com/users/roti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-02T21:19:00Z","updated_at":"2015-11-03T20:03:40Z","closed_at":null,"body":"I tried to use `:constructor-args` with a View class that has a constructor with two arguments, the second beeing a primitive int. \r\n\r\n`[:my-view {:constructor-args [256]}`\r\nresults in following error\r\n`\r\njava.lang.NoSuchMethodException: <init> [class android.content.Context, class java.lang.Long]\r\n`\r\n\r\n`[:my-view {:constructor-args [(int 256)]}`\r\nresults in following error\r\n`\r\njava.lang.NoSuchMethodException: <init> [class android.content.Context, class java.lang.Integer]\r\n`\r\n\r\nI believe the only way to support this case, is to add  some kind of special syntax or metadata to `:constructor-args`."},"comment":{"url":"https://api.github.com/repos/clojure-android/neko/issues/comments/153471531","html_url":"https://github.com/clojure-android/neko/issues/57#issuecomment-153471531","issue_url":"https://api.github.com/repos/clojure-android/neko/issues/57","id":153471531,"user":{"login":"alexander-yakushev","id":468477,"avatar_url":"https://avatars.githubusercontent.com/u/468477?v=3","gravatar_id":"","url":"https://api.github.com/users/alexander-yakushev","html_url":"https://github.com/alexander-yakushev","followers_url":"https://api.github.com/users/alexander-yakushev/followers","following_url":"https://api.github.com/users/alexander-yakushev/following{/other_user}","gists_url":"https://api.github.com/users/alexander-yakushev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander-yakushev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander-yakushev/subscriptions","organizations_url":"https://api.github.com/users/alexander-yakushev/orgs","repos_url":"https://api.github.com/users/alexander-yakushev/repos","events_url":"https://api.github.com/users/alexander-yakushev/events{/privacy}","received_events_url":"https://api.github.com/users/alexander-yakushev/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T20:03:40Z","updated_at":"2015-11-03T20:03:40Z","body":"I worked around this particular case by using `:custom-constructor` attribute."}}