{"action":"created","comment":{"url":"https://api.github.com/repos/infinispan/infinispan/pulls/comments/50391200","id":50391200,"diff_hunk":"@@ -46,13 +48,16 @@ public GroupMetadataImpl(Method method) {\n \n         @Override\n         public String getGroup(Object instance) {\n-            return String.class.cast(invokeAccessibly(instance, method, Util.EMPTY_OBJECT_ARRAY));\n+            PrivilegedAction<Object> action = () -> invokeAccessibly(instance, method, Util.EMPTY_OBJECT_ARRAY);\n+            Object object = System.getSecurityManager() == null ? action.run() : AccessController.doPrivileged(action);\n+            return String.class.cast(object);","path":"core/src/main/java/org/infinispan/distribution/group/GroupManagerImpl.java","position":null,"original_position":25,"commit_id":"cfc87fe1f558d692cf9f80e0892d560b90dfb24d","original_commit_id":"1303efcf431b6a18ea832cf6881fcee4ae0b741f","user":{"login":"rhusar","id":765506,"avatar_url":"https://avatars.githubusercontent.com/u/765506?v=3","gravatar_id":"","url":"https://api.github.com/users/rhusar","html_url":"https://github.com/rhusar","followers_url":"https://api.github.com/users/rhusar/followers","following_url":"https://api.github.com/users/rhusar/following{/other_user}","gists_url":"https://api.github.com/users/rhusar/gists{/gist_id}","starred_url":"https://api.github.com/users/rhusar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhusar/subscriptions","organizations_url":"https://api.github.com/users/rhusar/orgs","repos_url":"https://api.github.com/users/rhusar/repos","events_url":"https://api.github.com/users/rhusar/events{/privacy}","received_events_url":"https://api.github.com/users/rhusar/received_events","type":"User","site_admin":false},"body":"Done, no lambdas are invoked in case security manager is not configured.","created_at":"2016-01-21T11:49:55Z","updated_at":"2016-01-21T11:49:55Z","html_url":"https://github.com/infinispan/infinispan/pull/3926#discussion_r50391200","pull_request_url":"https://api.github.com/repos/infinispan/infinispan/pulls/3926","_links":{"self":{"href":"https://api.github.com/repos/infinispan/infinispan/pulls/comments/50391200"},"html":{"href":"https://github.com/infinispan/infinispan/pull/3926#discussion_r50391200"},"pull_request":{"href":"https://api.github.com/repos/infinispan/infinispan/pulls/3926"}}},"pull_request":{"url":"https://api.github.com/repos/infinispan/infinispan/pulls/3926","id":55576300,"html_url":"https://github.com/infinispan/infinispan/pull/3926","diff_url":"https://github.com/infinispan/infinispan/pull/3926.diff","patch_url":"https://github.com/infinispan/infinispan/pull/3926.patch","issue_url":"https://api.github.com/repos/infinispan/infinispan/issues/3926","number":3926,"state":"open","locked":false,"title":"[8.1.x] ISPN-6049 Calls to reflection API fail with enabled security manager;…","user":{"login":"rhusar","id":765506,"avatar_url":"https://avatars.githubusercontent.com/u/765506?v=3","gravatar_id":"","url":"https://api.github.com/users/rhusar","html_url":"https://github.com/rhusar","followers_url":"https://api.github.com/users/rhusar/followers","following_url":"https://api.github.com/users/rhusar/following{/other_user}","gists_url":"https://api.github.com/users/rhusar/gists{/gist_id}","starred_url":"https://api.github.com/users/rhusar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhusar/subscriptions","organizations_url":"https://api.github.com/users/rhusar/orgs","repos_url":"https://api.github.com/users/rhusar/repos","events_url":"https://api.github.com/users/rhusar/events{/privacy}","received_events_url":"https://api.github.com/users/rhusar/received_events","type":"User","site_admin":false},"body":"… need to be run in privileged block\r\n\r\nhttps://issues.jboss.org/browse/ISPN-6049","created_at":"2016-01-10T22:32:56Z","updated_at":"2016-01-21T11:49:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"90dc3c6b5df890328ae06d38589c5f7fedb60e5e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/infinispan/infinispan/pulls/3926/commits","review_comments_url":"https://api.github.com/repos/infinispan/infinispan/pulls/3926/comments","review_comment_url":"https://api.github.com/repos/infinispan/infinispan/pulls/comments{/number}","comments_url":"https://api.github.com/repos/infinispan/infinispan/issues/3926/comments","statuses_url":"https://api.github.com/repos/infinispan/infinispan/statuses/cfc87fe1f558d692cf9f80e0892d560b90dfb24d","head":{"label":"rhusar:ISPN-6049","ref":"ISPN-6049","sha":"cfc87fe1f558d692cf9f80e0892d560b90dfb24d","user":{"login":"rhusar","id":765506,"avatar_url":"https://avatars.githubusercontent.com/u/765506?v=3","gravatar_id":"","url":"https://api.github.com/users/rhusar","html_url":"https://github.com/rhusar","followers_url":"https://api.github.com/users/rhusar/followers","following_url":"https://api.github.com/users/rhusar/following{/other_user}","gists_url":"https://api.github.com/users/rhusar/gists{/gist_id}","starred_url":"https://api.github.com/users/rhusar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhusar/subscriptions","organizations_url":"https://api.github.com/users/rhusar/orgs","repos_url":"https://api.github.com/users/rhusar/repos","events_url":"https://api.github.com/users/rhusar/events{/privacy}","received_events_url":"https://api.github.com/users/rhusar/received_events","type":"User","site_admin":false},"repo":{"id":3095976,"name":"infinispan","full_name":"rhusar/infinispan","owner":{"login":"rhusar","id":765506,"avatar_url":"https://avatars.githubusercontent.com/u/765506?v=3","gravatar_id":"","url":"https://api.github.com/users/rhusar","html_url":"https://github.com/rhusar","followers_url":"https://api.github.com/users/rhusar/followers","following_url":"https://api.github.com/users/rhusar/following{/other_user}","gists_url":"https://api.github.com/users/rhusar/gists{/gist_id}","starred_url":"https://api.github.com/users/rhusar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhusar/subscriptions","organizations_url":"https://api.github.com/users/rhusar/orgs","repos_url":"https://api.github.com/users/rhusar/repos","events_url":"https://api.github.com/users/rhusar/events{/privacy}","received_events_url":"https://api.github.com/users/rhusar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rhusar/infinispan","description":"Infinispan is an open source data grid platform and highly scalable NoSQL cloud data store.","fork":true,"url":"https://api.github.com/repos/rhusar/infinispan","forks_url":"https://api.github.com/repos/rhusar/infinispan/forks","keys_url":"https://api.github.com/repos/rhusar/infinispan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rhusar/infinispan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rhusar/infinispan/teams","hooks_url":"https://api.github.com/repos/rhusar/infinispan/hooks","issue_events_url":"https://api.github.com/repos/rhusar/infinispan/issues/events{/number}","events_url":"https://api.github.com/repos/rhusar/infinispan/events","assignees_url":"https://api.github.com/repos/rhusar/infinispan/assignees{/user}","branches_url":"https://api.github.com/repos/rhusar/infinispan/branches{/branch}","tags_url":"https://api.github.com/repos/rhusar/infinispan/tags","blobs_url":"https://api.github.com/repos/rhusar/infinispan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rhusar/infinispan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rhusar/infinispan/git/refs{/sha}","trees_url":"https://api.github.com/repos/rhusar/infinispan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rhusar/infinispan/statuses/{sha}","languages_url":"https://api.github.com/repos/rhusar/infinispan/languages","stargazers_url":"https://api.github.com/repos/rhusar/infinispan/stargazers","contributors_url":"https://api.github.com/repos/rhusar/infinispan/contributors","subscribers_url":"https://api.github.com/repos/rhusar/infinispan/subscribers","subscription_url":"https://api.github.com/repos/rhusar/infinispan/subscription","commits_url":"https://api.github.com/repos/rhusar/infinispan/commits{/sha}","git_commits_url":"https://api.github.com/repos/rhusar/infinispan/git/commits{/sha}","comments_url":"https://api.github.com/repos/rhusar/infinispan/comments{/number}","issue_comment_url":"https://api.github.com/repos/rhusar/infinispan/issues/comments{/number}","contents_url":"https://api.github.com/repos/rhusar/infinispan/contents/{+path}","compare_url":"https://api.github.com/repos/rhusar/infinispan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rhusar/infinispan/merges","archive_url":"https://api.github.com/repos/rhusar/infinispan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rhusar/infinispan/downloads","issues_url":"https://api.github.com/repos/rhusar/infinispan/issues{/number}","pulls_url":"https://api.github.com/repos/rhusar/infinispan/pulls{/number}","milestones_url":"https://api.github.com/repos/rhusar/infinispan/milestones{/number}","notifications_url":"https://api.github.com/repos/rhusar/infinispan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rhusar/infinispan/labels{/name}","releases_url":"https://api.github.com/repos/rhusar/infinispan/releases{/id}","created_at":"2012-01-03T17:47:56Z","updated_at":"2015-03-23T13:55:13Z","pushed_at":"2016-01-21T11:48:32Z","git_url":"git://github.com/rhusar/infinispan.git","ssh_url":"git@github.com:rhusar/infinispan.git","clone_url":"https://github.com/rhusar/infinispan.git","svn_url":"https://github.com/rhusar/infinispan","homepage":"http://www.infinispan.org","size":75008,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"infinispan:8.1.x","ref":"8.1.x","sha":"17489b1b1c4a9d0e253b1caf3c68ef9d237d27dd","user":{"login":"infinispan","id":458093,"avatar_url":"https://avatars.githubusercontent.com/u/458093?v=3","gravatar_id":"","url":"https://api.github.com/users/infinispan","html_url":"https://github.com/infinispan","followers_url":"https://api.github.com/users/infinispan/followers","following_url":"https://api.github.com/users/infinispan/following{/other_user}","gists_url":"https://api.github.com/users/infinispan/gists{/gist_id}","starred_url":"https://api.github.com/users/infinispan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infinispan/subscriptions","organizations_url":"https://api.github.com/users/infinispan/orgs","repos_url":"https://api.github.com/users/infinispan/repos","events_url":"https://api.github.com/users/infinispan/events{/privacy}","received_events_url":"https://api.github.com/users/infinispan/received_events","type":"Organization","site_admin":false},"repo":{"id":1050944,"name":"infinispan","full_name":"infinispan/infinispan","owner":{"login":"infinispan","id":458093,"avatar_url":"https://avatars.githubusercontent.com/u/458093?v=3","gravatar_id":"","url":"https://api.github.com/users/infinispan","html_url":"https://github.com/infinispan","followers_url":"https://api.github.com/users/infinispan/followers","following_url":"https://api.github.com/users/infinispan/following{/other_user}","gists_url":"https://api.github.com/users/infinispan/gists{/gist_id}","starred_url":"https://api.github.com/users/infinispan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infinispan/subscriptions","organizations_url":"https://api.github.com/users/infinispan/orgs","repos_url":"https://api.github.com/users/infinispan/repos","events_url":"https://api.github.com/users/infinispan/events{/privacy}","received_events_url":"https://api.github.com/users/infinispan/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infinispan/infinispan","description":"Infinispan is an open source data grid platform and highly scalable NoSQL cloud data store.","fork":false,"url":"https://api.github.com/repos/infinispan/infinispan","forks_url":"https://api.github.com/repos/infinispan/infinispan/forks","keys_url":"https://api.github.com/repos/infinispan/infinispan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infinispan/infinispan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infinispan/infinispan/teams","hooks_url":"https://api.github.com/repos/infinispan/infinispan/hooks","issue_events_url":"https://api.github.com/repos/infinispan/infinispan/issues/events{/number}","events_url":"https://api.github.com/repos/infinispan/infinispan/events","assignees_url":"https://api.github.com/repos/infinispan/infinispan/assignees{/user}","branches_url":"https://api.github.com/repos/infinispan/infinispan/branches{/branch}","tags_url":"https://api.github.com/repos/infinispan/infinispan/tags","blobs_url":"https://api.github.com/repos/infinispan/infinispan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infinispan/infinispan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infinispan/infinispan/git/refs{/sha}","trees_url":"https://api.github.com/repos/infinispan/infinispan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infinispan/infinispan/statuses/{sha}","languages_url":"https://api.github.com/repos/infinispan/infinispan/languages","stargazers_url":"https://api.github.com/repos/infinispan/infinispan/stargazers","contributors_url":"https://api.github.com/repos/infinispan/infinispan/contributors","subscribers_url":"https://api.github.com/repos/infinispan/infinispan/subscribers","subscription_url":"https://api.github.com/repos/infinispan/infinispan/subscription","commits_url":"https://api.github.com/repos/infinispan/infinispan/commits{/sha}","git_commits_url":"https://api.github.com/repos/infinispan/infinispan/git/commits{/sha}","comments_url":"https://api.github.com/repos/infinispan/infinispan/comments{/number}","issue_comment_url":"https://api.github.com/repos/infinispan/infinispan/issues/comments{/number}","contents_url":"https://api.github.com/repos/infinispan/infinispan/contents/{+path}","compare_url":"https://api.github.com/repos/infinispan/infinispan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infinispan/infinispan/merges","archive_url":"https://api.github.com/repos/infinispan/infinispan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infinispan/infinispan/downloads","issues_url":"https://api.github.com/repos/infinispan/infinispan/issues{/number}","pulls_url":"https://api.github.com/repos/infinispan/infinispan/pulls{/number}","milestones_url":"https://api.github.com/repos/infinispan/infinispan/milestones{/number}","notifications_url":"https://api.github.com/repos/infinispan/infinispan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infinispan/infinispan/labels{/name}","releases_url":"https://api.github.com/repos/infinispan/infinispan/releases{/id}","created_at":"2010-11-04T12:33:19Z","updated_at":"2016-01-20T16:17:19Z","pushed_at":"2016-01-21T11:48:33Z","git_url":"git://github.com/infinispan/infinispan.git","ssh_url":"git@github.com:infinispan/infinispan.git","clone_url":"https://github.com/infinispan/infinispan.git","svn_url":"https://github.com/infinispan/infinispan","homepage":"http://www.infinispan.org","size":84757,"stargazers_count":446,"watchers_count":446,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":324,"mirror_url":null,"open_issues_count":21,"forks":324,"open_issues":21,"watchers":446,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/infinispan/infinispan/pulls/3926"},"html":{"href":"https://github.com/infinispan/infinispan/pull/3926"},"issue":{"href":"https://api.github.com/repos/infinispan/infinispan/issues/3926"},"comments":{"href":"https://api.github.com/repos/infinispan/infinispan/issues/3926/comments"},"review_comments":{"href":"https://api.github.com/repos/infinispan/infinispan/pulls/3926/comments"},"review_comment":{"href":"https://api.github.com/repos/infinispan/infinispan/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/infinispan/infinispan/pulls/3926/commits"},"statuses":{"href":"https://api.github.com/repos/infinispan/infinispan/statuses/cfc87fe1f558d692cf9f80e0892d560b90dfb24d"}}}}