{"action":"created","comment":{"url":"https://api.github.com/repos/hibernate/hibernate-orm/pulls/comments/46519633","id":46519633,"diff_hunk":"@@ -212,4 +214,18 @@ public void clear() {\n \t\tresourceCache.clear();\n \t}\n \n+\tpublic void removeBundle(Bundle bundle) {","path":"hibernate-osgi/src/main/java/org/hibernate/osgi/OsgiClassLoader.java","position":22,"original_position":22,"commit_id":"33507a1585538420690ceaf69b262831dec316f0","original_commit_id":"33507a1585538420690ceaf69b262831dec316f0","user":{"login":"gnodet","id":84022,"avatar_url":"https://avatars.githubusercontent.com/u/84022?v=3","gravatar_id":"","url":"https://api.github.com/users/gnodet","html_url":"https://github.com/gnodet","followers_url":"https://api.github.com/users/gnodet/followers","following_url":"https://api.github.com/users/gnodet/following{/other_user}","gists_url":"https://api.github.com/users/gnodet/gists{/gist_id}","starred_url":"https://api.github.com/users/gnodet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnodet/subscriptions","organizations_url":"https://api.github.com/users/gnodet/orgs","repos_url":"https://api.github.com/users/gnodet/repos","events_url":"https://api.github.com/users/gnodet/events{/privacy}","received_events_url":"https://api.github.com/users/gnodet/received_events","type":"User","site_admin":false},"body":"Yes, that's doable.  The reason was that I modified the addBundle() to call addClassLoader() instead (the bundles field is currently not used anymore).\r\nI can turn the bundles Set into a Map.","created_at":"2015-12-03T07:19:40Z","updated_at":"2015-12-03T07:19:40Z","html_url":"https://github.com/hibernate/hibernate-orm/pull/1172#discussion_r46519633","pull_request_url":"https://api.github.com/repos/hibernate/hibernate-orm/pulls/1172","_links":{"self":{"href":"https://api.github.com/repos/hibernate/hibernate-orm/pulls/comments/46519633"},"html":{"href":"https://github.com/hibernate/hibernate-orm/pull/1172#discussion_r46519633"},"pull_request":{"href":"https://api.github.com/repos/hibernate/hibernate-orm/pulls/1172"}}},"pull_request":{"url":"https://api.github.com/repos/hibernate/hibernate-orm/pulls/1172","id":52250562,"html_url":"https://github.com/hibernate/hibernate-orm/pull/1172","diff_url":"https://github.com/hibernate/hibernate-orm/pull/1172.diff","patch_url":"https://github.com/hibernate/hibernate-orm/pull/1172.patch","issue_url":"https://api.github.com/repos/hibernate/hibernate-orm/issues/1172","number":1172,"state":"open","locked":false,"title":"[HHH-10346] [ENTESB-4495] Hibernate and Bundle ClassLoaders out of sy…","user":{"login":"gnodet","id":84022,"avatar_url":"https://avatars.githubusercontent.com/u/84022?v=3","gravatar_id":"","url":"https://api.github.com/users/gnodet","html_url":"https://github.com/gnodet","followers_url":"https://api.github.com/users/gnodet/followers","following_url":"https://api.github.com/users/gnodet/following{/other_user}","gists_url":"https://api.github.com/users/gnodet/gists{/gist_id}","starred_url":"https://api.github.com/users/gnodet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnodet/subscriptions","organizations_url":"https://api.github.com/users/gnodet/orgs","repos_url":"https://api.github.com/users/gnodet/repos","events_url":"https://api.github.com/users/gnodet/events{/privacy}","received_events_url":"https://api.github.com/users/gnodet/received_events","type":"User","site_admin":false},"body":"…nc on Bundle Refresh","created_at":"2015-12-01T12:15:21Z","updated_at":"2015-12-03T07:19:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"231b7ea28da74e7b5e4869024f70ff67df78d4ce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hibernate/hibernate-orm/pulls/1172/commits","review_comments_url":"https://api.github.com/repos/hibernate/hibernate-orm/pulls/1172/comments","review_comment_url":"https://api.github.com/repos/hibernate/hibernate-orm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hibernate/hibernate-orm/issues/1172/comments","statuses_url":"https://api.github.com/repos/hibernate/hibernate-orm/statuses/33507a1585538420690ceaf69b262831dec316f0","head":{"label":"gnodet:ENTESB-4495","ref":"ENTESB-4495","sha":"33507a1585538420690ceaf69b262831dec316f0","user":{"login":"gnodet","id":84022,"avatar_url":"https://avatars.githubusercontent.com/u/84022?v=3","gravatar_id":"","url":"https://api.github.com/users/gnodet","html_url":"https://github.com/gnodet","followers_url":"https://api.github.com/users/gnodet/followers","following_url":"https://api.github.com/users/gnodet/following{/other_user}","gists_url":"https://api.github.com/users/gnodet/gists{/gist_id}","starred_url":"https://api.github.com/users/gnodet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnodet/subscriptions","organizations_url":"https://api.github.com/users/gnodet/orgs","repos_url":"https://api.github.com/users/gnodet/repos","events_url":"https://api.github.com/users/gnodet/events{/privacy}","received_events_url":"https://api.github.com/users/gnodet/received_events","type":"User","site_admin":false},"repo":{"id":47174084,"name":"hibernate-orm","full_name":"gnodet/hibernate-orm","owner":{"login":"gnodet","id":84022,"avatar_url":"https://avatars.githubusercontent.com/u/84022?v=3","gravatar_id":"","url":"https://api.github.com/users/gnodet","html_url":"https://github.com/gnodet","followers_url":"https://api.github.com/users/gnodet/followers","following_url":"https://api.github.com/users/gnodet/following{/other_user}","gists_url":"https://api.github.com/users/gnodet/gists{/gist_id}","starred_url":"https://api.github.com/users/gnodet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnodet/subscriptions","organizations_url":"https://api.github.com/users/gnodet/orgs","repos_url":"https://api.github.com/users/gnodet/repos","events_url":"https://api.github.com/users/gnodet/events{/privacy}","received_events_url":"https://api.github.com/users/gnodet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gnodet/hibernate-orm","description":"Hibernate's core Object/Relational Mapping functionality","fork":true,"url":"https://api.github.com/repos/gnodet/hibernate-orm","forks_url":"https://api.github.com/repos/gnodet/hibernate-orm/forks","keys_url":"https://api.github.com/repos/gnodet/hibernate-orm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gnodet/hibernate-orm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gnodet/hibernate-orm/teams","hooks_url":"https://api.github.com/repos/gnodet/hibernate-orm/hooks","issue_events_url":"https://api.github.com/repos/gnodet/hibernate-orm/issues/events{/number}","events_url":"https://api.github.com/repos/gnodet/hibernate-orm/events","assignees_url":"https://api.github.com/repos/gnodet/hibernate-orm/assignees{/user}","branches_url":"https://api.github.com/repos/gnodet/hibernate-orm/branches{/branch}","tags_url":"https://api.github.com/repos/gnodet/hibernate-orm/tags","blobs_url":"https://api.github.com/repos/gnodet/hibernate-orm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gnodet/hibernate-orm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gnodet/hibernate-orm/git/refs{/sha}","trees_url":"https://api.github.com/repos/gnodet/hibernate-orm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gnodet/hibernate-orm/statuses/{sha}","languages_url":"https://api.github.com/repos/gnodet/hibernate-orm/languages","stargazers_url":"https://api.github.com/repos/gnodet/hibernate-orm/stargazers","contributors_url":"https://api.github.com/repos/gnodet/hibernate-orm/contributors","subscribers_url":"https://api.github.com/repos/gnodet/hibernate-orm/subscribers","subscription_url":"https://api.github.com/repos/gnodet/hibernate-orm/subscription","commits_url":"https://api.github.com/repos/gnodet/hibernate-orm/commits{/sha}","git_commits_url":"https://api.github.com/repos/gnodet/hibernate-orm/git/commits{/sha}","comments_url":"https://api.github.com/repos/gnodet/hibernate-orm/comments{/number}","issue_comment_url":"https://api.github.com/repos/gnodet/hibernate-orm/issues/comments{/number}","contents_url":"https://api.github.com/repos/gnodet/hibernate-orm/contents/{+path}","compare_url":"https://api.github.com/repos/gnodet/hibernate-orm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gnodet/hibernate-orm/merges","archive_url":"https://api.github.com/repos/gnodet/hibernate-orm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gnodet/hibernate-orm/downloads","issues_url":"https://api.github.com/repos/gnodet/hibernate-orm/issues{/number}","pulls_url":"https://api.github.com/repos/gnodet/hibernate-orm/pulls{/number}","milestones_url":"https://api.github.com/repos/gnodet/hibernate-orm/milestones{/number}","notifications_url":"https://api.github.com/repos/gnodet/hibernate-orm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gnodet/hibernate-orm/labels{/name}","releases_url":"https://api.github.com/repos/gnodet/hibernate-orm/releases{/id}","created_at":"2015-12-01T07:49:26Z","updated_at":"2015-12-01T07:49:54Z","pushed_at":"2015-12-01T12:14:23Z","git_url":"git://github.com/gnodet/hibernate-orm.git","ssh_url":"git@github.com:gnodet/hibernate-orm.git","clone_url":"https://github.com/gnodet/hibernate-orm.git","svn_url":"https://github.com/gnodet/hibernate-orm","homepage":"http://hibernate.org","size":149133,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"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":"hibernate:4.2","ref":"4.2","sha":"577af3b32450a556ea5fe27540cc35ea36544d3e","user":{"login":"hibernate","id":348262,"avatar_url":"https://avatars.githubusercontent.com/u/348262?v=3","gravatar_id":"","url":"https://api.github.com/users/hibernate","html_url":"https://github.com/hibernate","followers_url":"https://api.github.com/users/hibernate/followers","following_url":"https://api.github.com/users/hibernate/following{/other_user}","gists_url":"https://api.github.com/users/hibernate/gists{/gist_id}","starred_url":"https://api.github.com/users/hibernate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hibernate/subscriptions","organizations_url":"https://api.github.com/users/hibernate/orgs","repos_url":"https://api.github.com/users/hibernate/repos","events_url":"https://api.github.com/users/hibernate/events{/privacy}","received_events_url":"https://api.github.com/users/hibernate/received_events","type":"Organization","site_admin":false},"repo":{"id":961036,"name":"hibernate-orm","full_name":"hibernate/hibernate-orm","owner":{"login":"hibernate","id":348262,"avatar_url":"https://avatars.githubusercontent.com/u/348262?v=3","gravatar_id":"","url":"https://api.github.com/users/hibernate","html_url":"https://github.com/hibernate","followers_url":"https://api.github.com/users/hibernate/followers","following_url":"https://api.github.com/users/hibernate/following{/other_user}","gists_url":"https://api.github.com/users/hibernate/gists{/gist_id}","starred_url":"https://api.github.com/users/hibernate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hibernate/subscriptions","organizations_url":"https://api.github.com/users/hibernate/orgs","repos_url":"https://api.github.com/users/hibernate/repos","events_url":"https://api.github.com/users/hibernate/events{/privacy}","received_events_url":"https://api.github.com/users/hibernate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hibernate/hibernate-orm","description":"Hibernate's core Object/Relational Mapping functionality","fork":false,"url":"https://api.github.com/repos/hibernate/hibernate-orm","forks_url":"https://api.github.com/repos/hibernate/hibernate-orm/forks","keys_url":"https://api.github.com/repos/hibernate/hibernate-orm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hibernate/hibernate-orm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hibernate/hibernate-orm/teams","hooks_url":"https://api.github.com/repos/hibernate/hibernate-orm/hooks","issue_events_url":"https://api.github.com/repos/hibernate/hibernate-orm/issues/events{/number}","events_url":"https://api.github.com/repos/hibernate/hibernate-orm/events","assignees_url":"https://api.github.com/repos/hibernate/hibernate-orm/assignees{/user}","branches_url":"https://api.github.com/repos/hibernate/hibernate-orm/branches{/branch}","tags_url":"https://api.github.com/repos/hibernate/hibernate-orm/tags","blobs_url":"https://api.github.com/repos/hibernate/hibernate-orm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hibernate/hibernate-orm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hibernate/hibernate-orm/git/refs{/sha}","trees_url":"https://api.github.com/repos/hibernate/hibernate-orm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hibernate/hibernate-orm/statuses/{sha}","languages_url":"https://api.github.com/repos/hibernate/hibernate-orm/languages","stargazers_url":"https://api.github.com/repos/hibernate/hibernate-orm/stargazers","contributors_url":"https://api.github.com/repos/hibernate/hibernate-orm/contributors","subscribers_url":"https://api.github.com/repos/hibernate/hibernate-orm/subscribers","subscription_url":"https://api.github.com/repos/hibernate/hibernate-orm/subscription","commits_url":"https://api.github.com/repos/hibernate/hibernate-orm/commits{/sha}","git_commits_url":"https://api.github.com/repos/hibernate/hibernate-orm/git/commits{/sha}","comments_url":"https://api.github.com/repos/hibernate/hibernate-orm/comments{/number}","issue_comment_url":"https://api.github.com/repos/hibernate/hibernate-orm/issues/comments{/number}","contents_url":"https://api.github.com/repos/hibernate/hibernate-orm/contents/{+path}","compare_url":"https://api.github.com/repos/hibernate/hibernate-orm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hibernate/hibernate-orm/merges","archive_url":"https://api.github.com/repos/hibernate/hibernate-orm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hibernate/hibernate-orm/downloads","issues_url":"https://api.github.com/repos/hibernate/hibernate-orm/issues{/number}","pulls_url":"https://api.github.com/repos/hibernate/hibernate-orm/pulls{/number}","milestones_url":"https://api.github.com/repos/hibernate/hibernate-orm/milestones{/number}","notifications_url":"https://api.github.com/repos/hibernate/hibernate-orm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hibernate/hibernate-orm/labels{/name}","releases_url":"https://api.github.com/repos/hibernate/hibernate-orm/releases{/id}","created_at":"2010-10-04T16:15:52Z","updated_at":"2015-12-03T02:56:31Z","pushed_at":"2015-12-03T05:00:55Z","git_url":"git://github.com/hibernate/hibernate-orm.git","ssh_url":"git@github.com:hibernate/hibernate-orm.git","clone_url":"https://github.com/hibernate/hibernate-orm.git","svn_url":"https://github.com/hibernate/hibernate-orm","homepage":"http://hibernate.org","size":156399,"stargazers_count":1476,"watchers_count":1476,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":1263,"mirror_url":null,"open_issues_count":92,"forks":1263,"open_issues":92,"watchers":1476,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hibernate/hibernate-orm/pulls/1172"},"html":{"href":"https://github.com/hibernate/hibernate-orm/pull/1172"},"issue":{"href":"https://api.github.com/repos/hibernate/hibernate-orm/issues/1172"},"comments":{"href":"https://api.github.com/repos/hibernate/hibernate-orm/issues/1172/comments"},"review_comments":{"href":"https://api.github.com/repos/hibernate/hibernate-orm/pulls/1172/comments"},"review_comment":{"href":"https://api.github.com/repos/hibernate/hibernate-orm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hibernate/hibernate-orm/pulls/1172/commits"},"statuses":{"href":"https://api.github.com/repos/hibernate/hibernate-orm/statuses/33507a1585538420690ceaf69b262831dec316f0"}}}}