{"action":"created","issue":{"url":"https://api.github.com/repos/ceylon/ceylon/issues/6246","repository_url":"https://api.github.com/repos/ceylon/ceylon","labels_url":"https://api.github.com/repos/ceylon/ceylon/issues/6246/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon/issues/6246/comments","events_url":"https://api.github.com/repos/ceylon/ceylon/issues/6246/events","html_url":"https://github.com/ceylon/ceylon/issues/6246","id":152702879,"number":6246,"title":"Runtime crash narrowing to Java type","user":{"login":"sadmac7000","id":1865365,"avatar_url":"https://avatars.githubusercontent.com/u/1865365?v=3","gravatar_id":"","url":"https://api.github.com/users/sadmac7000","html_url":"https://github.com/sadmac7000","followers_url":"https://api.github.com/users/sadmac7000/followers","following_url":"https://api.github.com/users/sadmac7000/following{/other_user}","gists_url":"https://api.github.com/users/sadmac7000/gists{/gist_id}","starred_url":"https://api.github.com/users/sadmac7000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sadmac7000/subscriptions","organizations_url":"https://api.github.com/users/sadmac7000/orgs","repos_url":"https://api.github.com/users/sadmac7000/repos","events_url":"https://api.github.com/users/sadmac7000/events{/privacy}","received_events_url":"https://api.github.com/users/sadmac7000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-03T05:27:46Z","updated_at":"2016-05-03T05:54:55Z","closed_at":null,"body":"I saw this error:\r\n```\r\nException in thread \"main\" com.redhat.ceylon.compiler.java.language.ReifiedTypeError: Cannot determine whether class java.util.Arrays$ArrayList is a java.util.List<java.lang.String>\r\n        at com.redhat.ceylon.compiler.java.runtime.metamodel.Metamodel.isReified(Metamodel.java:338)\r\n        at com.redhat.ceylon.compiler.java.Util.isReified(Util.java:63)\r\n        at org.americanteeth.ceylon_llvm.CSOBlob.putStringList(CSOBlob.ceylon:60)\r\n        at org.americanteeth.ceylon_llvm.CSOModule.getBinData(CSOModule.ceylon:92)\r\n        at org.americanteeth.ceylon_llvm.CompilerTool.run(CompilerTool.ceylon:215)\r\n        at com.redhat.ceylon.common.tools.CeylonTool.run(CeylonTool.java:520)\r\n        at com.redhat.ceylon.common.tools.CeylonTool.execute(CeylonTool.java:405)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:497)\r\n        at com.redhat.ceylon.launcher.Launcher.runInJava7Checked(Launcher.java:115)\r\n        at com.redhat.ceylon.launcher.Launcher.run(Launcher.java:41)\r\n        at com.redhat.ceylon.launcher.Launcher.run(Launcher.java:34)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:497)\r\n        at com.redhat.ceylon.launcher.Bootstrap.runInternal(Bootstrap.java:139)\r\n        at com.redhat.ceylon.launcher.Bootstrap.run(Bootstrap.java:93)\r\n        at com.redhat.ceylon.launcher.Bootstrap.main(Bootstrap.java:85)\r\n```\r\n\r\nFrom this code:\r\n```ceylon\r\n    shared void putStringList({String*}|JList<JString> got) {\r\n        {String*} s;\r\n\r\n        if (is JList<JString> got) {\r\n            s = CeylonList(got).map(Object.string);\r\n        } else {\r\n            s = got;\r\n        }\r\n\r\n        blob_.addAll(s.map((x) => utf8.encode(x).chain{0.byte})\r\n            .fold({} of {Byte*})((x,y) => x.chain(y)).chain{0.byte});\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/ceylon/ceylon/issues/comments/216444421","html_url":"https://github.com/ceylon/ceylon/issues/6246#issuecomment-216444421","issue_url":"https://api.github.com/repos/ceylon/ceylon/issues/6246","id":216444421,"user":{"login":"jvasileff","id":236050,"avatar_url":"https://avatars.githubusercontent.com/u/236050?v=3","gravatar_id":"","url":"https://api.github.com/users/jvasileff","html_url":"https://github.com/jvasileff","followers_url":"https://api.github.com/users/jvasileff/followers","following_url":"https://api.github.com/users/jvasileff/following{/other_user}","gists_url":"https://api.github.com/users/jvasileff/gists{/gist_id}","starred_url":"https://api.github.com/users/jvasileff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvasileff/subscriptions","organizations_url":"https://api.github.com/users/jvasileff/orgs","repos_url":"https://api.github.com/users/jvasileff/repos","events_url":"https://api.github.com/users/jvasileff/events{/privacy}","received_events_url":"https://api.github.com/users/jvasileff/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T05:54:55Z","updated_at":"2016-05-03T05:54:55Z","body":"Correction: that wouldn't solve this particular case since `{String*}` and `JList<?>` aren't disjoint."}}