{"action":"created","issue":{"url":"https://api.github.com/repos/ibmruntimes/openj9-openjdk-jdk10/issues/60","repository_url":"https://api.github.com/repos/ibmruntimes/openj9-openjdk-jdk10","labels_url":"https://api.github.com/repos/ibmruntimes/openj9-openjdk-jdk10/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/ibmruntimes/openj9-openjdk-jdk10/issues/60/comments","events_url":"https://api.github.com/repos/ibmruntimes/openj9-openjdk-jdk10/issues/60/events","html_url":"https://github.com/ibmruntimes/openj9-openjdk-jdk10/pull/60","id":363327872,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3Nzk0MDg3","number":60,"title":"Add doPrivileged for security sensitive calls","user":{"login":"JasonFengJ9","id":17935151,"node_id":"MDQ6VXNlcjE3OTM1MTUx","avatar_url":"https://avatars0.githubusercontent.com/u/17935151?v=4","gravatar_id":"","url":"https://api.github.com/users/JasonFengJ9","html_url":"https://github.com/JasonFengJ9","followers_url":"https://api.github.com/users/JasonFengJ9/followers","following_url":"https://api.github.com/users/JasonFengJ9/following{/other_user}","gists_url":"https://api.github.com/users/JasonFengJ9/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonFengJ9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonFengJ9/subscriptions","organizations_url":"https://api.github.com/users/JasonFengJ9/orgs","repos_url":"https://api.github.com/users/JasonFengJ9/repos","events_url":"https://api.github.com/users/JasonFengJ9/events{/privacy}","received_events_url":"https://api.github.com/users/JasonFengJ9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-24T21:29:27Z","updated_at":"2018-09-25T00:30:23Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/ibmruntimes/openj9-openjdk-jdk10/pulls/60","html_url":"https://github.com/ibmruntimes/openj9-openjdk-jdk10/pull/60","diff_url":"https://github.com/ibmruntimes/openj9-openjdk-jdk10/pull/60.diff","patch_url":"https://github.com/ibmruntimes/openj9-openjdk-jdk10/pull/60.patch"},"body":"Add `doPrivileged` for security sensitive calls\r\n\r\nOtherwise following security exception might be thrown in certain testcase.\r\n```\r\nCaused by: java.security.AccessControlException: Access denied (\"java.lang.RuntimePermission\" \"accessSystemModules\")\r\n\tat java.base/java.security.AccessController.throwACE(AccessController.java:176)\r\n\tat java.base/java.security.AccessController.checkPermissionHelper(AccessController.java:237)\r\n\tat java.base/java.security.AccessController.checkPermission(AccessController.java:373)\r\n\tat java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:322)\r\n\tat java.base/jdk.internal.module.SystemModuleFinders$SystemModuleReader.checkPermissionToConnect(SystemModuleFinders.java:406)\r\n\tat java.base/jdk.internal.module.SystemModuleFinders$SystemModuleReader.<init>(SystemModuleFinders.java:414)\r\n\tat java.base/jdk.internal.module.SystemModuleFinders$2.get(SystemModuleFinders.java:315)\r\n\tat java.base/jdk.internal.module.SystemModuleFinders$2.get(SystemModuleFinders.java:312)\r\n\tat java.base/jdk.internal.module.ModuleReferenceImpl.open(ModuleReferenceImpl.java:93)\r\n\tat java.base/jdk.internal.loader.BuiltinClassLoader$5.apply(BuiltinClassLoader.java:1291)\r\n\tat java.base/jdk.internal.loader.BuiltinClassLoader$5.apply(BuiltinClassLoader.java:1288)\r\n\tat java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)\r\n\tat java.base/jdk.internal.loader.BuiltinClassLoader.moduleReaderFor(BuiltinClassLoader.java:1299)\r\n\tat java.base/jdk.internal.loader.BuiltinClassLoader.findClassInModuleOrNull(BuiltinClassLoader.java:852)\r\n\tat java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:777)\r\n\tat java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:812)\r\n\tat java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:781)\r\n\tat java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:751)\r\n\tat java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)\r\n\tat java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1032)\r\n```\r\n\r\nPorted from https://github.com/ibmruntimes/openj9-openjdk-jdk11/pull/24.\r\n\r\nReviewer: @pshipton\r\nFYI: @hangshao0 @DanHeidinga\r\n\r\nSigned-off-by: Jason Feng <fengj@ca.ibm.com>"},"comment":{"url":"https://api.github.com/repos/ibmruntimes/openj9-openjdk-jdk10/issues/comments/424168358","html_url":"https://github.com/ibmruntimes/openj9-openjdk-jdk10/pull/60#issuecomment-424168358","issue_url":"https://api.github.com/repos/ibmruntimes/openj9-openjdk-jdk10/issues/60","id":424168358,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDE2ODM1OA==","user":{"login":"JasonFengJ9","id":17935151,"node_id":"MDQ6VXNlcjE3OTM1MTUx","avatar_url":"https://avatars0.githubusercontent.com/u/17935151?v=4","gravatar_id":"","url":"https://api.github.com/users/JasonFengJ9","html_url":"https://github.com/JasonFengJ9","followers_url":"https://api.github.com/users/JasonFengJ9/followers","following_url":"https://api.github.com/users/JasonFengJ9/following{/other_user}","gists_url":"https://api.github.com/users/JasonFengJ9/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonFengJ9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonFengJ9/subscriptions","organizations_url":"https://api.github.com/users/JasonFengJ9/orgs","repos_url":"https://api.github.com/users/JasonFengJ9/repos","events_url":"https://api.github.com/users/JasonFengJ9/events{/privacy}","received_events_url":"https://api.github.com/users/JasonFengJ9/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T00:30:23Z","updated_at":"2018-09-25T00:30:23Z","author_association":"NONE","body":"Copyright fixed."}}
{"actor":{"display_login":"JasonFengJ9"}}