{"action":"created","issue":{"url":"https://api.github.com/repos/ceylon/ceylon/issues/2424","repository_url":"https://api.github.com/repos/ceylon/ceylon","labels_url":"https://api.github.com/repos/ceylon/ceylon/issues/2424/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon/issues/2424/comments","events_url":"https://api.github.com/repos/ceylon/ceylon/issues/2424/events","html_url":"https://github.com/ceylon/ceylon/issues/2424","id":116895988,"number":2424,"title":"Can't override a Java method that uses raw types","user":{"login":"CeylonMigrationBot","id":6583436,"avatar_url":"https://avatars.githubusercontent.com/u/6583436?v=3","gravatar_id":"","url":"https://api.github.com/users/CeylonMigrationBot","html_url":"https://github.com/CeylonMigrationBot","followers_url":"https://api.github.com/users/CeylonMigrationBot/followers","following_url":"https://api.github.com/users/CeylonMigrationBot/following{/other_user}","gists_url":"https://api.github.com/users/CeylonMigrationBot/gists{/gist_id}","starred_url":"https://api.github.com/users/CeylonMigrationBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CeylonMigrationBot/subscriptions","organizations_url":"https://api.github.com/users/CeylonMigrationBot/orgs","repos_url":"https://api.github.com/users/CeylonMigrationBot/repos","events_url":"https://api.github.com/users/CeylonMigrationBot/events{/privacy}","received_events_url":"https://api.github.com/users/CeylonMigrationBot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceylon/ceylon/labels/m-compiler-java","name":"m-compiler-java","color":"00aa00"},{"url":"https://api.github.com/repos/ceylon/ceylon/labels/t-bug","name":"t-bug","color":"e10c02"}],"state":"open","locked":false,"assignee":{"login":"FroMage","id":179265,"avatar_url":"https://avatars.githubusercontent.com/u/179265?v=3","gravatar_id":"","url":"https://api.github.com/users/FroMage","html_url":"https://github.com/FroMage","followers_url":"https://api.github.com/users/FroMage/followers","following_url":"https://api.github.com/users/FroMage/following{/other_user}","gists_url":"https://api.github.com/users/FroMage/gists{/gist_id}","starred_url":"https://api.github.com/users/FroMage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FroMage/subscriptions","organizations_url":"https://api.github.com/users/FroMage/orgs","repos_url":"https://api.github.com/users/FroMage/repos","events_url":"https://api.github.com/users/FroMage/events{/privacy}","received_events_url":"https://api.github.com/users/FroMage/received_events","type":"User","site_admin":false},"assignees":[{"login":"FroMage","id":179265,"avatar_url":"https://avatars.githubusercontent.com/u/179265?v=3","gravatar_id":"","url":"https://api.github.com/users/FroMage","html_url":"https://github.com/FroMage","followers_url":"https://api.github.com/users/FroMage/followers","following_url":"https://api.github.com/users/FroMage/following{/other_user}","gists_url":"https://api.github.com/users/FroMage/gists{/gist_id}","starred_url":"https://api.github.com/users/FroMage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FroMage/subscriptions","organizations_url":"https://api.github.com/users/FroMage/orgs","repos_url":"https://api.github.com/users/FroMage/repos","events_url":"https://api.github.com/users/FroMage/events{/privacy}","received_events_url":"https://api.github.com/users/FroMage/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ceylon/ceylon/milestones/15","html_url":"https://github.com/ceylon/ceylon/milestones/1.2.3","labels_url":"https://api.github.com/repos/ceylon/ceylon/milestones/15/labels","id":1590811,"number":15,"title":"1.2.3","description":"","creator":{"login":"FroMage","id":179265,"avatar_url":"https://avatars.githubusercontent.com/u/179265?v=3","gravatar_id":"","url":"https://api.github.com/users/FroMage","html_url":"https://github.com/FroMage","followers_url":"https://api.github.com/users/FroMage/followers","following_url":"https://api.github.com/users/FroMage/following{/other_user}","gists_url":"https://api.github.com/users/FroMage/gists{/gist_id}","starred_url":"https://api.github.com/users/FroMage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FroMage/subscriptions","organizations_url":"https://api.github.com/users/FroMage/orgs","repos_url":"https://api.github.com/users/FroMage/repos","events_url":"https://api.github.com/users/FroMage/events{/privacy}","received_events_url":"https://api.github.com/users/FroMage/received_events","type":"User","site_admin":false},"open_issues":142,"closed_issues":218,"state":"open","created_at":"2016-02-18T14:05:01Z","updated_at":"2016-07-20T13:09:59Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-11-08T13:36:52Z","updated_at":"2016-07-20T13:22:55Z","closed_at":null,"body":"[@bjansen] Given the following scenario:\r\n\r\n```java\r\npublic class A<T> { }\r\n```\r\n```java\r\nimport java.util.Collection;\r\n\r\npublic interface B {\r\n    void method(Collection<A> a);\r\n}\r\n```\r\n```ceylon\r\nimport java.util { Collection }\r\nclass C() satisfies B {\r\n    shared actual void method(Collection<A<out Object>>? a) { }\r\n}\r\n```\r\n\r\nI get the following error:\r\n\r\n```\r\nsource/mymodule/run.ceylon:5: error: C is not abstract and does not override abstract method method(Collection<A>) in B\r\nclass C() satisfies B {\r\n^\r\nsource/mymodule/run.ceylon:7: error: name clash: method(Collection<A<? extends Object>>) in C and method(Collection<A>) in B have the same erasure, yet neither overrides the other\r\n    shared actual void method(Collection<A<out Object>>? a) {\r\n           ^\r\n2 errors\r\n```\r\n\r\nCeylon forces me to override `Collection<A>` with `Collection<A<out Object>>`, and unfortunately I can't fix the Java interface to use `Collection<A<Whatever>>`.\n\n[Migrated from ceylon/ceylon-compiler#2424]"},"comment":{"url":"https://api.github.com/repos/ceylon/ceylon/issues/comments/233947160","html_url":"https://github.com/ceylon/ceylon/issues/2424#issuecomment-233947160","issue_url":"https://api.github.com/repos/ceylon/ceylon/issues/2424","id":233947160,"user":{"login":"FroMage","id":179265,"avatar_url":"https://avatars.githubusercontent.com/u/179265?v=3","gravatar_id":"","url":"https://api.github.com/users/FroMage","html_url":"https://github.com/FroMage","followers_url":"https://api.github.com/users/FroMage/followers","following_url":"https://api.github.com/users/FroMage/following{/other_user}","gists_url":"https://api.github.com/users/FroMage/gists{/gist_id}","starred_url":"https://api.github.com/users/FroMage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FroMage/subscriptions","organizations_url":"https://api.github.com/users/FroMage/orgs","repos_url":"https://api.github.com/users/FroMage/repos","events_url":"https://api.github.com/users/FroMage/events{/privacy}","received_events_url":"https://api.github.com/users/FroMage/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T13:22:55Z","updated_at":"2016-07-20T13:22:55Z","body":"Ah right, nesting makes this more complex. Guess I'll have to turn the entire method raw then."}}
{"actor":{"display_login":"FroMage"}}