GitHub PullRequestEvent at 2014-04-10 05:33:11
Repository: native-gen
Actor: mmhelloworld
Payload: {"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/Frege/native-gen/pulls/2","id":14514846,"html_url":"https://github.com/Frege/native-gen/pull/2","diff_url":"https://github.com/Frege/native-gen/pull/2.diff","patch_url":"https://github.com/Frege/native-gen/pull/2.patch","issue_url":"https://api.github.com/repos/Frege/native-gen/issues/2","number":2,"state":"closed","title":"fix issue of classFor. (causes ExceptionInInitializerError)","user":{"login":"cytb","id":6651551,"avatar_url":"https://avatars.githubusercontent.com/u/6651551?","gravatar_id":"eee7683b8a008dac22d27e89f25a011c","url":"https://api.github.com/users/cytb","html_url":"https://github.com/cytb","followers_url":"https://api.github.com/users/cytb/followers","following_url":"https://api.github.com/users/cytb/following{/other_user}","gists_url":"https://api.github.com/users/cytb/gists{/gist_id}","starred_url":"https://api.github.com/users/cytb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cytb/subscriptions","organizations_url":"https://api.github.com/users/cytb/orgs","repos_url":"https://api.github.com/users/cytb/repos","events_url":"https://api.github.com/users/cytb/events{/privacy}","received_events_url":"https://api.github.com/users/cytb/received_events","type":"User","site_admin":false},"body":"When I used native-gen to the eclipse-jdt jars (AST Parsers),  following error occured:\r\n> Exception in thread \"main\" java.lang.ExceptionInInitializerError\r\n>         at java.lang.Class.forName0(Native Method)\r\n>         at java.lang.Class.forName(Class.java:259)\r\n>         at frege.nativegen.java.Lang.eval(Lang.java:831)\r\n> ...\r\n\r\n\"ExceptionInInitializerError\" is raised when the static initializer failed.\r\nAnd above dump is caused by Class.forName in function classFor.\r\n\r\n  According to http://stackoverflow.com/a/7099453,  the method \"java.lang.Class.forName\" calls\r\nstatic initializer 'clinit' on loading the classes, and the native-gen uses 'java.lang.Class' object\r\nonly for metainfo, thus, I think this behavior won't be necessary.\r\n  In contrast, the \"java.lang.ClassLoader.loadClass\" doesn't call 'clinit', and I suppose it will be better.\r\n\r\nThank you for reading this.","created_at":"2014-04-08T18:27:11Z","updated_at":"2014-04-10T05:33:11Z","closed_at":"2014-04-10T05:33:11Z","merged_at":"2014-04-10T05:33:11Z","merge_commit_sha":"011e9beec527ce6bb705c735cb96082a07ff4a64","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Frege/native-gen/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Frege/native-gen/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Frege/native-gen/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Frege/native-gen/issues/2/comments","statuses_url":"https://api.github.com/repos/Frege/native-gen/statuses/646d2040e7bb04379748a3867fd2b718ce58cd32","head":{"label":"cytb:master","ref":"master","sha":"646d2040e7bb04379748a3867fd2b718ce58cd32","user":{"login":"cytb","id":6651551,"avatar_url":"https://avatars.githubusercontent.com/u/6651551?","gravatar_id":"eee7683b8a008dac22d27e89f25a011c","url":"https://api.github.com/users/cytb","html_url":"https://github.com/cytb","followers_url":"https://api.github.com/users/cytb/followers","following_url":"https://api.github.com/users/cytb/following{/other_user}","gists_url":"https://api.github.com/users/cytb/gists{/gist_id}","starred_url":"https://api.github.com/users/cytb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cytb/subscriptions","organizations_url":"https://api.github.com/users/cytb/orgs","repos_url":"https://api.github.com/users/cytb/repos","events_url":"https://api.github.com/users/cytb/events{/privacy}","received_events_url":"https://api.github.com/users/cytb/received_events","type":"User","site_admin":false},"repo":{"id":18496858,"name":"native-gen","full_name":"cytb/native-gen","owner":{"login":"cytb","id":6651551,"avatar_url":"https://avatars.githubusercontent.com/u/6651551?","gravatar_id":"eee7683b8a008dac22d27e89f25a011c","url":"https://api.github.com/users/cytb","html_url":"https://github.com/cytb","followers_url":"https://api.github.com/users/cytb/followers","following_url":"https://api.github.com/users/cytb/following{/other_user}","gists_url":"https://api.github.com/users/cytb/gists{/gist_id}","starred_url":"https://api.github.com/users/cytb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cytb/subscriptions","organizations_url":"https://api.github.com/users/cytb/orgs","repos_url":"https://api.github.com/users/cytb/repos","events_url":"https://api.github.com/users/cytb/events{/privacy}","received_events_url":"https://api.github.com/users/cytb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cytb/native-gen","description":"Frege code generator for Java classes","fork":true,"url":"https://api.github.com/repos/cytb/native-gen","forks_url":"https://api.github.com/repos/cytb/native-gen/forks","keys_url":"https://api.github.com/repos/cytb/native-gen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cytb/native-gen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cytb/native-gen/teams","hooks_url":"https://api.github.com/repos/cytb/native-gen/hooks","issue_events_url":"https://api.github.com/repos/cytb/native-gen/issues/events{/number}","events_url":"https://api.github.com/repos/cytb/native-gen/events","assignees_url":"https://api.github.com/repos/cytb/native-gen/assignees{/user}","branches_url":"https://api.github.com/repos/cytb/native-gen/branches{/branch}","tags_url":"https://api.github.com/repos/cytb/native-gen/tags","blobs_url":"https://api.github.com/repos/cytb/native-gen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cytb/native-gen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cytb/native-gen/git/refs{/sha}","trees_url":"https://api.github.com/repos/cytb/native-gen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cytb/native-gen/statuses/{sha}","languages_url":"https://api.github.com/repos/cytb/native-gen/languages","stargazers_url":"https://api.github.com/repos/cytb/native-gen/stargazers","contributors_url":"https://api.github.com/repos/cytb/native-gen/contributors","subscribers_url":"https://api.github.com/repos/cytb/native-gen/subscribers","subscription_url":"https://api.github.com/repos/cytb/native-gen/subscription","commits_url":"https://api.github.com/repos/cytb/native-gen/commits{/sha}","git_commits_url":"https://api.github.com/repos/cytb/native-gen/git/commits{/sha}","comments_url":"https://api.github.com/repos/cytb/native-gen/comments{/number}","issue_comment_url":"https://api.github.com/repos/cytb/native-gen/issues/comments/{number}","contents_url":"https://api.github.com/repos/cytb/native-gen/contents/{+path}","compare_url":"https://api.github.com/repos/cytb/native-gen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cytb/native-gen/merges","archive_url":"https://api.github.com/repos/cytb/native-gen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cytb/native-gen/downloads","issues_url":"https://api.github.com/repos/cytb/native-gen/issues{/number}","pulls_url":"https://api.github.com/repos/cytb/native-gen/pulls{/number}","milestones_url":"https://api.github.com/repos/cytb/native-gen/milestones{/number}","notifications_url":"https://api.github.com/repos/cytb/native-gen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cytb/native-gen/labels{/name}","releases_url":"https://api.github.com/repos/cytb/native-gen/releases{/id}","created_at":"2014-04-06T19:03:21Z","updated_at":"2014-04-10T05:33:11Z","pushed_at":"2014-04-09T22:58:45Z","git_url":"git://github.com/cytb/native-gen.git","ssh_url":"git@github.com:cytb/native-gen.git","clone_url":"https://github.com/cytb/native-gen.git","svn_url":"https://github.com/cytb/native-gen","homepage":null,"size":144,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master","master_branch":"master"}},"base":{"label":"Frege:master","ref":"master","sha":"908870030e32b2b138d8d2e00a1ccb7deb1bb538","user":{"login":"Frege","id":2502410,"avatar_url":"https://avatars.githubusercontent.com/u/2502410?","gravatar_id":"1a7abb27121eb6f313bf2ca4f7a59c49","url":"https://api.github.com/users/Frege","html_url":"https://github.com/Frege","followers_url":"https://api.github.com/users/Frege/followers","following_url":"https://api.github.com/users/Frege/following{/other_user}","gists_url":"https://api.github.com/users/Frege/gists{/gist_id}","starred_url":"https://api.github.com/users/Frege/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frege/subscriptions","organizations_url":"https://api.github.com/users/Frege/orgs","repos_url":"https://api.github.com/users/Frege/repos","events_url":"https://api.github.com/users/Frege/events{/privacy}","received_events_url":"https://api.github.com/users/Frege/received_events","type":"Organization","site_admin":false},"repo":{"id":14657168,"name":"native-gen","full_name":"Frege/native-gen","owner":{"login":"Frege","id":2502410,"avatar_url":"https://avatars.githubusercontent.com/u/2502410?","gravatar_id":"1a7abb27121eb6f313bf2ca4f7a59c49","url":"https://api.github.com/users/Frege","html_url":"https://github.com/Frege","followers_url":"https://api.github.com/users/Frege/followers","following_url":"https://api.github.com/users/Frege/following{/other_user}","gists_url":"https://api.github.com/users/Frege/gists{/gist_id}","starred_url":"https://api.github.com/users/Frege/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frege/subscriptions","organizations_url":"https://api.github.com/users/Frege/orgs","repos_url":"https://api.github.com/users/Frege/repos","events_url":"https://api.github.com/users/Frege/events{/privacy}","received_events_url":"https://api.github.com/users/Frege/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Frege/native-gen","description":"Frege code generator for Java classes","fork":false,"url":"https://api.github.com/repos/Frege/native-gen","forks_url":"https://api.github.com/repos/Frege/native-gen/forks","keys_url":"https://api.github.com/repos/Frege/native-gen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Frege/native-gen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Frege/native-gen/teams","hooks_url":"https://api.github.com/repos/Frege/native-gen/hooks","issue_events_url":"https://api.github.com/repos/Frege/native-gen/issues/events{/number}","events_url":"https://api.github.com/repos/Frege/native-gen/events","assignees_url":"https://api.github.com/repos/Frege/native-gen/assignees{/user}","branches_url":"https://api.github.com/repos/Frege/native-gen/branches{/branch}","tags_url":"https://api.github.com/repos/Frege/native-gen/tags","blobs_url":"https://api.github.com/repos/Frege/native-gen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Frege/native-gen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Frege/native-gen/git/refs{/sha}","trees_url":"https://api.github.com/repos/Frege/native-gen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Frege/native-gen/statuses/{sha}","languages_url":"https://api.github.com/repos/Frege/native-gen/languages","stargazers_url":"https://api.github.com/repos/Frege/native-gen/stargazers","contributors_url":"https://api.github.com/repos/Frege/native-gen/contributors","subscribers_url":"https://api.github.com/repos/Frege/native-gen/subscribers","subscription_url":"https://api.github.com/repos/Frege/native-gen/subscription","commits_url":"https://api.github.com/repos/Frege/native-gen/commits{/sha}","git_commits_url":"https://api.github.com/repos/Frege/native-gen/git/commits{/sha}","comments_url":"https://api.github.com/repos/Frege/native-gen/comments{/number}","issue_comment_url":"https://api.github.com/repos/Frege/native-gen/issues/comments/{number}","contents_url":"https://api.github.com/repos/Frege/native-gen/contents/{+path}","compare_url":"https://api.github.com/repos/Frege/native-gen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Frege/native-gen/merges","archive_url":"https://api.github.com/repos/Frege/native-gen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Frege/native-gen/downloads","issues_url":"https://api.github.com/repos/Frege/native-gen/issues{/number}","pulls_url":"https://api.github.com/repos/Frege/native-gen/pulls{/number}","milestones_url":"https://api.github.com/repos/Frege/native-gen/milestones{/number}","notifications_url":"https://api.github.com/repos/Frege/native-gen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Frege/native-gen/labels{/name}","releases_url":"https://api.github.com/repos/Frege/native-gen/releases{/id}","created_at":"2013-11-24T07:01:00Z","updated_at":"2014-04-10T05:33:11Z","pushed_at":"2014-04-10T05:33:11Z","git_url":"git://github.com/Frege/native-gen.git","ssh_url":"git@github.com:Frege/native-gen.git","clone_url":"https://github.com/Frege/native-gen.git","svn_url":"https://github.com/Frege/native-gen","homepage":null,"size":216,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master","master_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Frege/native-gen/pulls/2"},"html":{"href":"https://github.com/Frege/native-gen/pull/2"},"issue":{"href":"https://api.github.com/repos/Frege/native-gen/issues/2"},"comments":{"href":"https://api.github.com/repos/Frege/native-gen/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Frege/native-gen/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Frege/native-gen/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Frege/native-gen/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Frege/native-gen/statuses/646d2040e7bb04379748a3867fd2b718ce58cd32"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mmhelloworld","id":771425,"avatar_url":"https://avatars.githubusercontent.com/u/771425?","gravatar_id":"1e9027c30474f1db9220fc33755995fa","url":"https://api.github.com/users/mmhelloworld","html_url":"https://github.com/mmhelloworld","followers_url":"https://api.github.com/users/mmhelloworld/followers","following_url":"https://api.github.com/users/mmhelloworld/following{/other_user}","gists_url":"https://api.github.com/users/mmhelloworld/gists{/gist_id}","starred_url":"https://api.github.com/users/mmhelloworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmhelloworld/subscriptions","organizations_url":"https://api.github.com/users/mmhelloworld/orgs","repos_url":"https://api.github.com/users/mmhelloworld/repos","events_url":"https://api.github.com/users/mmhelloworld/events{/privacy}","received_events_url":"https://api.github.com/users/mmhelloworld/received_events","type":"User","site_admin":false},"comments":3,"review_comments":4,"commits":2,"additions":11,"deletions":5,"changed_files":4}}