{"action":"opened","number":664,"pull_request":{"url":"https://api.github.com/repos/ceylon/ceylon.language/pulls/664","id":33609066,"html_url":"https://github.com/ceylon/ceylon.language/pull/664","diff_url":"https://github.com/ceylon/ceylon.language/pull/664.diff","patch_url":"https://github.com/ceylon/ceylon.language/pull/664.patch","issue_url":"https://api.github.com/repos/ceylon/ceylon.language/issues/664","number":664,"state":"open","locked":false,"title":"Main API : use ceylon-module-resolver classloader instead of system classloader (discussion)","user":{"login":"sgalles","id":153065,"avatar_url":"https://avatars.githubusercontent.com/u/153065?v=3","gravatar_id":"","url":"https://api.github.com/users/sgalles","html_url":"https://github.com/sgalles","followers_url":"https://api.github.com/users/sgalles/followers","following_url":"https://api.github.com/users/sgalles/following{/other_user}","gists_url":"https://api.github.com/users/sgalles/gists{/gist_id}","starred_url":"https://api.github.com/users/sgalles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgalles/subscriptions","organizations_url":"https://api.github.com/users/sgalles/orgs","repos_url":"https://api.github.com/users/sgalles/repos","events_url":"https://api.github.com/users/sgalles/events{/privacy}","received_events_url":"https://api.github.com/users/sgalles/received_events","type":"User","site_admin":false},"body":"This is related to\r\nhttps://groups.google.com/forum/#!topic/ceylon-users/UWx7CGIMwuw\r\n\r\nI've created this pull request to have a place to discuss this topic. I'm not sure at all that it must be merged\r\nBasically the idea is to use the classloader of a class belonging to ceylon-module-resolver instead of the system classloader when discovering the classes via the Main API (to init the metamodel).\r\n\r\nBecause in my case (a Gradle+Ceylon experiment) the classes were loaded by Gradle and did not end up in the system classloader.\r\nUsing the classloader of a class of ceylon-module-resolver at least I know that I'm going to use the classloader that was used to load the classes of the Ceylon. It could be the system classloader, or not, but it should always work.\r\nJust scrap this pull request if this does not make any sense.","created_at":"2015-04-18T21:27:05Z","updated_at":"2015-04-18T21:27:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d91be378cbaa3435fb891419513ee2ecddc76f8e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ceylon/ceylon.language/pulls/664/commits","review_comments_url":"https://api.github.com/repos/ceylon/ceylon.language/pulls/664/comments","review_comment_url":"https://api.github.com/repos/ceylon/ceylon.language/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ceylon/ceylon.language/issues/664/comments","statuses_url":"https://api.github.com/repos/ceylon/ceylon.language/statuses/de8a1a2824e3dcef2c1030a237cbf5bf8774a54a","head":{"label":"sgalles:mainclassloader","ref":"mainclassloader","sha":"de8a1a2824e3dcef2c1030a237cbf5bf8774a54a","user":{"login":"sgalles","id":153065,"avatar_url":"https://avatars.githubusercontent.com/u/153065?v=3","gravatar_id":"","url":"https://api.github.com/users/sgalles","html_url":"https://github.com/sgalles","followers_url":"https://api.github.com/users/sgalles/followers","following_url":"https://api.github.com/users/sgalles/following{/other_user}","gists_url":"https://api.github.com/users/sgalles/gists{/gist_id}","starred_url":"https://api.github.com/users/sgalles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgalles/subscriptions","organizations_url":"https://api.github.com/users/sgalles/orgs","repos_url":"https://api.github.com/users/sgalles/repos","events_url":"https://api.github.com/users/sgalles/events{/privacy}","received_events_url":"https://api.github.com/users/sgalles/received_events","type":"User","site_admin":false},"repo":{"id":17047016,"name":"ceylon.language","full_name":"sgalles/ceylon.language","owner":{"login":"sgalles","id":153065,"avatar_url":"https://avatars.githubusercontent.com/u/153065?v=3","gravatar_id":"","url":"https://api.github.com/users/sgalles","html_url":"https://github.com/sgalles","followers_url":"https://api.github.com/users/sgalles/followers","following_url":"https://api.github.com/users/sgalles/following{/other_user}","gists_url":"https://api.github.com/users/sgalles/gists{/gist_id}","starred_url":"https://api.github.com/users/sgalles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgalles/subscriptions","organizations_url":"https://api.github.com/users/sgalles/orgs","repos_url":"https://api.github.com/users/sgalles/repos","events_url":"https://api.github.com/users/sgalles/events{/privacy}","received_events_url":"https://api.github.com/users/sgalles/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sgalles/ceylon.language","description":"Ceylon language module","fork":true,"url":"https://api.github.com/repos/sgalles/ceylon.language","forks_url":"https://api.github.com/repos/sgalles/ceylon.language/forks","keys_url":"https://api.github.com/repos/sgalles/ceylon.language/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgalles/ceylon.language/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgalles/ceylon.language/teams","hooks_url":"https://api.github.com/repos/sgalles/ceylon.language/hooks","issue_events_url":"https://api.github.com/repos/sgalles/ceylon.language/issues/events{/number}","events_url":"https://api.github.com/repos/sgalles/ceylon.language/events","assignees_url":"https://api.github.com/repos/sgalles/ceylon.language/assignees{/user}","branches_url":"https://api.github.com/repos/sgalles/ceylon.language/branches{/branch}","tags_url":"https://api.github.com/repos/sgalles/ceylon.language/tags","blobs_url":"https://api.github.com/repos/sgalles/ceylon.language/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgalles/ceylon.language/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgalles/ceylon.language/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgalles/ceylon.language/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgalles/ceylon.language/statuses/{sha}","languages_url":"https://api.github.com/repos/sgalles/ceylon.language/languages","stargazers_url":"https://api.github.com/repos/sgalles/ceylon.language/stargazers","contributors_url":"https://api.github.com/repos/sgalles/ceylon.language/contributors","subscribers_url":"https://api.github.com/repos/sgalles/ceylon.language/subscribers","subscription_url":"https://api.github.com/repos/sgalles/ceylon.language/subscription","commits_url":"https://api.github.com/repos/sgalles/ceylon.language/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgalles/ceylon.language/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgalles/ceylon.language/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgalles/ceylon.language/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgalles/ceylon.language/contents/{+path}","compare_url":"https://api.github.com/repos/sgalles/ceylon.language/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgalles/ceylon.language/merges","archive_url":"https://api.github.com/repos/sgalles/ceylon.language/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgalles/ceylon.language/downloads","issues_url":"https://api.github.com/repos/sgalles/ceylon.language/issues{/number}","pulls_url":"https://api.github.com/repos/sgalles/ceylon.language/pulls{/number}","milestones_url":"https://api.github.com/repos/sgalles/ceylon.language/milestones{/number}","notifications_url":"https://api.github.com/repos/sgalles/ceylon.language/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgalles/ceylon.language/labels{/name}","releases_url":"https://api.github.com/repos/sgalles/ceylon.language/releases{/id}","created_at":"2014-02-21T05:56:27Z","updated_at":"2014-12-13T12:23:24Z","pushed_at":"2015-04-18T21:14:02Z","git_url":"git://github.com/sgalles/ceylon.language.git","ssh_url":"git@github.com:sgalles/ceylon.language.git","clone_url":"https://github.com/sgalles/ceylon.language.git","svn_url":"https://github.com/sgalles/ceylon.language","homepage":"http://ceylon-lang.org","size":15635,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ceylon:master","ref":"master","sha":"dcdb7df630ba3c92814a3d8850ce6e130f352d8b","user":{"login":"ceylon","id":579261,"avatar_url":"https://avatars.githubusercontent.com/u/579261?v=3","gravatar_id":"","url":"https://api.github.com/users/ceylon","html_url":"https://github.com/ceylon","followers_url":"https://api.github.com/users/ceylon/followers","following_url":"https://api.github.com/users/ceylon/following{/other_user}","gists_url":"https://api.github.com/users/ceylon/gists{/gist_id}","starred_url":"https://api.github.com/users/ceylon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceylon/subscriptions","organizations_url":"https://api.github.com/users/ceylon/orgs","repos_url":"https://api.github.com/users/ceylon/repos","events_url":"https://api.github.com/users/ceylon/events{/privacy}","received_events_url":"https://api.github.com/users/ceylon/received_events","type":"Organization","site_admin":false},"repo":{"id":2508768,"name":"ceylon.language","full_name":"ceylon/ceylon.language","owner":{"login":"ceylon","id":579261,"avatar_url":"https://avatars.githubusercontent.com/u/579261?v=3","gravatar_id":"","url":"https://api.github.com/users/ceylon","html_url":"https://github.com/ceylon","followers_url":"https://api.github.com/users/ceylon/followers","following_url":"https://api.github.com/users/ceylon/following{/other_user}","gists_url":"https://api.github.com/users/ceylon/gists{/gist_id}","starred_url":"https://api.github.com/users/ceylon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceylon/subscriptions","organizations_url":"https://api.github.com/users/ceylon/orgs","repos_url":"https://api.github.com/users/ceylon/repos","events_url":"https://api.github.com/users/ceylon/events{/privacy}","received_events_url":"https://api.github.com/users/ceylon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ceylon/ceylon.language","description":"Ceylon language module","fork":false,"url":"https://api.github.com/repos/ceylon/ceylon.language","forks_url":"https://api.github.com/repos/ceylon/ceylon.language/forks","keys_url":"https://api.github.com/repos/ceylon/ceylon.language/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ceylon/ceylon.language/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ceylon/ceylon.language/teams","hooks_url":"https://api.github.com/repos/ceylon/ceylon.language/hooks","issue_events_url":"https://api.github.com/repos/ceylon/ceylon.language/issues/events{/number}","events_url":"https://api.github.com/repos/ceylon/ceylon.language/events","assignees_url":"https://api.github.com/repos/ceylon/ceylon.language/assignees{/user}","branches_url":"https://api.github.com/repos/ceylon/ceylon.language/branches{/branch}","tags_url":"https://api.github.com/repos/ceylon/ceylon.language/tags","blobs_url":"https://api.github.com/repos/ceylon/ceylon.language/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ceylon/ceylon.language/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ceylon/ceylon.language/git/refs{/sha}","trees_url":"https://api.github.com/repos/ceylon/ceylon.language/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ceylon/ceylon.language/statuses/{sha}","languages_url":"https://api.github.com/repos/ceylon/ceylon.language/languages","stargazers_url":"https://api.github.com/repos/ceylon/ceylon.language/stargazers","contributors_url":"https://api.github.com/repos/ceylon/ceylon.language/contributors","subscribers_url":"https://api.github.com/repos/ceylon/ceylon.language/subscribers","subscription_url":"https://api.github.com/repos/ceylon/ceylon.language/subscription","commits_url":"https://api.github.com/repos/ceylon/ceylon.language/commits{/sha}","git_commits_url":"https://api.github.com/repos/ceylon/ceylon.language/git/commits{/sha}","comments_url":"https://api.github.com/repos/ceylon/ceylon.language/comments{/number}","issue_comment_url":"https://api.github.com/repos/ceylon/ceylon.language/issues/comments{/number}","contents_url":"https://api.github.com/repos/ceylon/ceylon.language/contents/{+path}","compare_url":"https://api.github.com/repos/ceylon/ceylon.language/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ceylon/ceylon.language/merges","archive_url":"https://api.github.com/repos/ceylon/ceylon.language/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ceylon/ceylon.language/downloads","issues_url":"https://api.github.com/repos/ceylon/ceylon.language/issues{/number}","pulls_url":"https://api.github.com/repos/ceylon/ceylon.language/pulls{/number}","milestones_url":"https://api.github.com/repos/ceylon/ceylon.language/milestones{/number}","notifications_url":"https://api.github.com/repos/ceylon/ceylon.language/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ceylon/ceylon.language/labels{/name}","releases_url":"https://api.github.com/repos/ceylon/ceylon.language/releases{/id}","created_at":"2011-10-04T00:14:36Z","updated_at":"2015-04-18T17:07:14Z","pushed_at":"2015-04-18T21:27:07Z","git_url":"git://github.com/ceylon/ceylon.language.git","ssh_url":"git@github.com:ceylon/ceylon.language.git","clone_url":"https://github.com/ceylon/ceylon.language.git","svn_url":"https://github.com/ceylon/ceylon.language","homepage":"http://ceylon-lang.org","size":24831,"stargazers_count":161,"watchers_count":161,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":60,"mirror_url":null,"open_issues_count":70,"forks":60,"open_issues":70,"watchers":161,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ceylon/ceylon.language/pulls/664"},"html":{"href":"https://github.com/ceylon/ceylon.language/pull/664"},"issue":{"href":"https://api.github.com/repos/ceylon/ceylon.language/issues/664"},"comments":{"href":"https://api.github.com/repos/ceylon/ceylon.language/issues/664/comments"},"review_comments":{"href":"https://api.github.com/repos/ceylon/ceylon.language/pulls/664/comments"},"review_comment":{"href":"https://api.github.com/repos/ceylon/ceylon.language/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ceylon/ceylon.language/pulls/664/commits"},"statuses":{"href":"https://api.github.com/repos/ceylon/ceylon.language/statuses/de8a1a2824e3dcef2c1030a237cbf5bf8774a54a"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}