{"action":"created","issue":{"url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2365","labels_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2365/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2365/comments","events_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2365/events","html_url":"https://github.com/ceylon/ceylon-compiler/issues/2365","id":111938399,"number":2365,"title":"Conflicting imports? Only in CLI, IDE seems fine","user":{"login":"quintesse","id":778793,"avatar_url":"https://avatars.githubusercontent.com/u/778793?v=3","gravatar_id":"","url":"https://api.github.com/users/quintesse","html_url":"https://github.com/quintesse","followers_url":"https://api.github.com/users/quintesse/followers","following_url":"https://api.github.com/users/quintesse/following{/other_user}","gists_url":"https://api.github.com/users/quintesse/gists{/gist_id}","starred_url":"https://api.github.com/users/quintesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quintesse/subscriptions","organizations_url":"https://api.github.com/users/quintesse/orgs","repos_url":"https://api.github.com/users/quintesse/repos","events_url":"https://api.github.com/users/quintesse/events{/privacy}","received_events_url":"https://api.github.com/users/quintesse/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceylon/ceylon-compiler/labels/BUG","name":"BUG","color":"e10c02"},{"url":"https://api.github.com/repos/ceylon/ceylon-compiler/labels/model-loader","name":"model-loader","color":"FF9400"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ceylon/ceylon-compiler/milestones/11","html_url":"https://github.com/ceylon/ceylon-compiler/milestones/1.2","labels_url":"https://api.github.com/repos/ceylon/ceylon-compiler/milestones/11/labels","id":809477,"number":11,"title":"1.2","description":"","creator":{"login":"tombentley","id":879487,"avatar_url":"https://avatars.githubusercontent.com/u/879487?v=3","gravatar_id":"","url":"https://api.github.com/users/tombentley","html_url":"https://github.com/tombentley","followers_url":"https://api.github.com/users/tombentley/followers","following_url":"https://api.github.com/users/tombentley/following{/other_user}","gists_url":"https://api.github.com/users/tombentley/gists{/gist_id}","starred_url":"https://api.github.com/users/tombentley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombentley/subscriptions","organizations_url":"https://api.github.com/users/tombentley/orgs","repos_url":"https://api.github.com/users/tombentley/repos","events_url":"https://api.github.com/users/tombentley/events{/privacy}","received_events_url":"https://api.github.com/users/tombentley/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":428,"state":"open","created_at":"2014-10-01T08:51:07Z","updated_at":"2015-10-20T18:16:11Z","due_on":"2014-11-02T23:00:00Z","closed_at":null},"comments":7,"created_at":"2015-10-17T02:05:01Z","updated_at":"2015-10-20T18:17:00Z","closed_at":null,"body":"This code\r\n\r\n```ceylon\r\nimport org.w3c.dom.events {Event, EventListener}\r\n\r\nclass EventListenerExample() satisfies EventListener {\r\n    shared actual void handleEvent(Event event) { \r\n    }\r\n}\r\n```\r\n\r\nusing this module descriptor:\r\n\r\n```ceylon\r\nnative(\"jvm\") module inexp.itsnatceylon \"1.0.0\" {\r\n    import java.base \"7\";\r\n    import javax.xml \"7\";\r\n    shared import \"xml-apis:xml-apis\" \"1.3.04\";\r\n}\r\n```\r\n\r\nresults in these errors using the CLI compiler:\r\n\r\n```\r\nsource/inexp/itsnatceylon/ceylonex.ceylon:2: error: imported declaration not found: 'Event'\r\nimport org.w3c.dom.events {Event, EventListener}\r\n                           ^\r\nsource/inexp/itsnatceylon/ceylonex.ceylon:2: error: imported declaration not found: 'EventListener'\r\nimport org.w3c.dom.events {Event, EventListener}\r\n                                  ^\r\nsource/inexp/itsnatceylon/ceylonex.ceylon:5: error: type declaration does not exist: 'Event'\r\n    shared actual void handleEvent(Event event) {\r\n                                   ^\r\nsource/inexp/itsnatceylon/ceylonex.ceylon:5: error: actual member does not refine any inherited member: 'handleEvent' in 'EventListenerExample'\r\n    shared actual void handleEvent(Event event) {\r\n                       ^\r\nsource/inexp/itsnatceylon/ceylonex.ceylon:4: error: type declaration does not exist: 'EventListener'\r\nclass EventListenerExample() satisfies EventListener {\r\n```\r\n\r\nbut if you remove the `import javax.xml \"7\"` the errors disappear.\r\n\r\nEven more strange is that in the IDE this compiles just fine (with or without the xml import)!\r\n\r\nFound by @jmarranz"},"comment":{"url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/comments/149652737","html_url":"https://github.com/ceylon/ceylon-compiler/issues/2365#issuecomment-149652737","issue_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2365","id":149652737,"user":{"login":"gavinking","id":579974,"avatar_url":"https://avatars.githubusercontent.com/u/579974?v=3","gravatar_id":"","url":"https://api.github.com/users/gavinking","html_url":"https://github.com/gavinking","followers_url":"https://api.github.com/users/gavinking/followers","following_url":"https://api.github.com/users/gavinking/following{/other_user}","gists_url":"https://api.github.com/users/gavinking/gists{/gist_id}","starred_url":"https://api.github.com/users/gavinking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavinking/subscriptions","organizations_url":"https://api.github.com/users/gavinking/orgs","repos_url":"https://api.github.com/users/gavinking/repos","events_url":"https://api.github.com/users/gavinking/events{/privacy}","received_events_url":"https://api.github.com/users/gavinking/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T18:17:00Z","updated_at":"2015-10-20T18:17:00Z","body":"@FroMage so we're reassign this to 1.3, I assume?\r\n\r\nNote that I also ran into the problem in #2373."}}