{"action":"closed","number":303,"pull_request":{"url":"https://api.github.com/repos/jmockit/jmockit1/pulls/303","id":74441427,"html_url":"https://github.com/jmockit/jmockit1/pull/303","diff_url":"https://github.com/jmockit/jmockit1/pull/303.diff","patch_url":"https://github.com/jmockit/jmockit1/pull/303.patch","issue_url":"https://api.github.com/repos/jmockit/jmockit1/issues/303","number":303,"state":"closed","locked":false,"title":"Try different classes as holder for the mocking bridge fields","user":{"login":"Vampire","id":325196,"avatar_url":"https://avatars.githubusercontent.com/u/325196?v=3","gravatar_id":"","url":"https://api.github.com/users/Vampire","html_url":"https://github.com/Vampire","followers_url":"https://api.github.com/users/Vampire/followers","following_url":"https://api.github.com/users/Vampire/following{/other_user}","gists_url":"https://api.github.com/users/Vampire/gists{/gist_id}","starred_url":"https://api.github.com/users/Vampire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vampire/subscriptions","organizations_url":"https://api.github.com/users/Vampire/orgs","repos_url":"https://api.github.com/users/Vampire/repos","events_url":"https://api.github.com/users/Vampire/events{/privacy}","received_events_url":"https://api.github.com/users/Vampire/received_events","type":"User","site_admin":false},"body":"If you load JMockit dynamically after something already loaded the class `java.lang.NegativeArraySizeException`, the mocking bridge fields will not get generated and you get an error e. g. about missing field `$MMB` if you run your tests.\r\n\r\nIssue #298 is one example of this happening, because Hazelcast got initialized before JMockit is initialized and Hazelcast loaded this class already.\r\n\r\nAnother example would be another application loaded in the same application server before that used this class already.\r\n\r\nThis PR tries to instrument `java.lang.NegativeArraySizeException`, `java.lang.annotation.IncompleteAnnotationException`, `java.lang.OutOfMemoryError` and `java.lang.StackOverflowError` until it founds one that the instrumentation worked with and throws an error otherwise. This list can be extended as you like with additional classes to be tried.","created_at":"2016-06-20T13:17:32Z","updated_at":"2016-06-25T20:48:29Z","closed_at":"2016-06-25T20:48:29Z","merged_at":null,"merge_commit_sha":"8c056f5d88fa739c05d1408f9e8f0fc34983ca01","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jmockit/jmockit1/pulls/303/commits","review_comments_url":"https://api.github.com/repos/jmockit/jmockit1/pulls/303/comments","review_comment_url":"https://api.github.com/repos/jmockit/jmockit1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jmockit/jmockit1/issues/303/comments","statuses_url":"https://api.github.com/repos/jmockit/jmockit1/statuses/5d6df282e70a26ca466ac679cc60cb3829f388e6","head":{"label":"Vampire:try-different-mocking-bridge-fields-holder-classes","ref":"try-different-mocking-bridge-fields-holder-classes","sha":"5d6df282e70a26ca466ac679cc60cb3829f388e6","user":{"login":"Vampire","id":325196,"avatar_url":"https://avatars.githubusercontent.com/u/325196?v=3","gravatar_id":"","url":"https://api.github.com/users/Vampire","html_url":"https://github.com/Vampire","followers_url":"https://api.github.com/users/Vampire/followers","following_url":"https://api.github.com/users/Vampire/following{/other_user}","gists_url":"https://api.github.com/users/Vampire/gists{/gist_id}","starred_url":"https://api.github.com/users/Vampire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vampire/subscriptions","organizations_url":"https://api.github.com/users/Vampire/orgs","repos_url":"https://api.github.com/users/Vampire/repos","events_url":"https://api.github.com/users/Vampire/events{/privacy}","received_events_url":"https://api.github.com/users/Vampire/received_events","type":"User","site_admin":false},"repo":{"id":61548114,"name":"jmockit1","full_name":"Vampire/jmockit1","owner":{"login":"Vampire","id":325196,"avatar_url":"https://avatars.githubusercontent.com/u/325196?v=3","gravatar_id":"","url":"https://api.github.com/users/Vampire","html_url":"https://github.com/Vampire","followers_url":"https://api.github.com/users/Vampire/followers","following_url":"https://api.github.com/users/Vampire/following{/other_user}","gists_url":"https://api.github.com/users/Vampire/gists{/gist_id}","starred_url":"https://api.github.com/users/Vampire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vampire/subscriptions","organizations_url":"https://api.github.com/users/Vampire/orgs","repos_url":"https://api.github.com/users/Vampire/repos","events_url":"https://api.github.com/users/Vampire/events{/privacy}","received_events_url":"https://api.github.com/users/Vampire/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vampire/jmockit1","description":"Codebase for JMockit 1.x releases","fork":true,"url":"https://api.github.com/repos/Vampire/jmockit1","forks_url":"https://api.github.com/repos/Vampire/jmockit1/forks","keys_url":"https://api.github.com/repos/Vampire/jmockit1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vampire/jmockit1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vampire/jmockit1/teams","hooks_url":"https://api.github.com/repos/Vampire/jmockit1/hooks","issue_events_url":"https://api.github.com/repos/Vampire/jmockit1/issues/events{/number}","events_url":"https://api.github.com/repos/Vampire/jmockit1/events","assignees_url":"https://api.github.com/repos/Vampire/jmockit1/assignees{/user}","branches_url":"https://api.github.com/repos/Vampire/jmockit1/branches{/branch}","tags_url":"https://api.github.com/repos/Vampire/jmockit1/tags","blobs_url":"https://api.github.com/repos/Vampire/jmockit1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vampire/jmockit1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vampire/jmockit1/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vampire/jmockit1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vampire/jmockit1/statuses/{sha}","languages_url":"https://api.github.com/repos/Vampire/jmockit1/languages","stargazers_url":"https://api.github.com/repos/Vampire/jmockit1/stargazers","contributors_url":"https://api.github.com/repos/Vampire/jmockit1/contributors","subscribers_url":"https://api.github.com/repos/Vampire/jmockit1/subscribers","subscription_url":"https://api.github.com/repos/Vampire/jmockit1/subscription","commits_url":"https://api.github.com/repos/Vampire/jmockit1/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vampire/jmockit1/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vampire/jmockit1/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vampire/jmockit1/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vampire/jmockit1/contents/{+path}","compare_url":"https://api.github.com/repos/Vampire/jmockit1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vampire/jmockit1/merges","archive_url":"https://api.github.com/repos/Vampire/jmockit1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vampire/jmockit1/downloads","issues_url":"https://api.github.com/repos/Vampire/jmockit1/issues{/number}","pulls_url":"https://api.github.com/repos/Vampire/jmockit1/pulls{/number}","milestones_url":"https://api.github.com/repos/Vampire/jmockit1/milestones{/number}","notifications_url":"https://api.github.com/repos/Vampire/jmockit1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vampire/jmockit1/labels{/name}","releases_url":"https://api.github.com/repos/Vampire/jmockit1/releases{/id}","deployments_url":"https://api.github.com/repos/Vampire/jmockit1/deployments","created_at":"2016-06-20T13:03:07Z","updated_at":"2016-06-20T13:03:09Z","pushed_at":"2016-06-22T18:27:16Z","git_url":"git://github.com/Vampire/jmockit1.git","ssh_url":"git@github.com:Vampire/jmockit1.git","clone_url":"https://github.com/Vampire/jmockit1.git","svn_url":"https://github.com/Vampire/jmockit1","homepage":null,"size":2698,"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":"jmockit:master","ref":"master","sha":"badb34f17936d86a26be33f8dacfe066e47f2b16","user":{"login":"jmockit","id":7240014,"avatar_url":"https://avatars.githubusercontent.com/u/7240014?v=3","gravatar_id":"","url":"https://api.github.com/users/jmockit","html_url":"https://github.com/jmockit","followers_url":"https://api.github.com/users/jmockit/followers","following_url":"https://api.github.com/users/jmockit/following{/other_user}","gists_url":"https://api.github.com/users/jmockit/gists{/gist_id}","starred_url":"https://api.github.com/users/jmockit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmockit/subscriptions","organizations_url":"https://api.github.com/users/jmockit/orgs","repos_url":"https://api.github.com/users/jmockit/repos","events_url":"https://api.github.com/users/jmockit/events{/privacy}","received_events_url":"https://api.github.com/users/jmockit/received_events","type":"Organization","site_admin":false},"repo":{"id":21611038,"name":"jmockit1","full_name":"jmockit/jmockit1","owner":{"login":"jmockit","id":7240014,"avatar_url":"https://avatars.githubusercontent.com/u/7240014?v=3","gravatar_id":"","url":"https://api.github.com/users/jmockit","html_url":"https://github.com/jmockit","followers_url":"https://api.github.com/users/jmockit/followers","following_url":"https://api.github.com/users/jmockit/following{/other_user}","gists_url":"https://api.github.com/users/jmockit/gists{/gist_id}","starred_url":"https://api.github.com/users/jmockit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmockit/subscriptions","organizations_url":"https://api.github.com/users/jmockit/orgs","repos_url":"https://api.github.com/users/jmockit/repos","events_url":"https://api.github.com/users/jmockit/events{/privacy}","received_events_url":"https://api.github.com/users/jmockit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jmockit/jmockit1","description":"Codebase for JMockit 1.x releases","fork":false,"url":"https://api.github.com/repos/jmockit/jmockit1","forks_url":"https://api.github.com/repos/jmockit/jmockit1/forks","keys_url":"https://api.github.com/repos/jmockit/jmockit1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmockit/jmockit1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmockit/jmockit1/teams","hooks_url":"https://api.github.com/repos/jmockit/jmockit1/hooks","issue_events_url":"https://api.github.com/repos/jmockit/jmockit1/issues/events{/number}","events_url":"https://api.github.com/repos/jmockit/jmockit1/events","assignees_url":"https://api.github.com/repos/jmockit/jmockit1/assignees{/user}","branches_url":"https://api.github.com/repos/jmockit/jmockit1/branches{/branch}","tags_url":"https://api.github.com/repos/jmockit/jmockit1/tags","blobs_url":"https://api.github.com/repos/jmockit/jmockit1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmockit/jmockit1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmockit/jmockit1/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmockit/jmockit1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmockit/jmockit1/statuses/{sha}","languages_url":"https://api.github.com/repos/jmockit/jmockit1/languages","stargazers_url":"https://api.github.com/repos/jmockit/jmockit1/stargazers","contributors_url":"https://api.github.com/repos/jmockit/jmockit1/contributors","subscribers_url":"https://api.github.com/repos/jmockit/jmockit1/subscribers","subscription_url":"https://api.github.com/repos/jmockit/jmockit1/subscription","commits_url":"https://api.github.com/repos/jmockit/jmockit1/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmockit/jmockit1/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmockit/jmockit1/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmockit/jmockit1/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmockit/jmockit1/contents/{+path}","compare_url":"https://api.github.com/repos/jmockit/jmockit1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmockit/jmockit1/merges","archive_url":"https://api.github.com/repos/jmockit/jmockit1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmockit/jmockit1/downloads","issues_url":"https://api.github.com/repos/jmockit/jmockit1/issues{/number}","pulls_url":"https://api.github.com/repos/jmockit/jmockit1/pulls{/number}","milestones_url":"https://api.github.com/repos/jmockit/jmockit1/milestones{/number}","notifications_url":"https://api.github.com/repos/jmockit/jmockit1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmockit/jmockit1/labels{/name}","releases_url":"https://api.github.com/repos/jmockit/jmockit1/releases{/id}","deployments_url":"https://api.github.com/repos/jmockit/jmockit1/deployments","created_at":"2014-07-08T12:02:15Z","updated_at":"2016-06-24T16:55:03Z","pushed_at":"2016-06-25T20:43:24Z","git_url":"git://github.com/jmockit/jmockit1.git","ssh_url":"git@github.com:jmockit/jmockit1.git","clone_url":"https://github.com/jmockit/jmockit1.git","svn_url":"https://github.com/jmockit/jmockit1","homepage":null,"size":3044,"stargazers_count":145,"watchers_count":145,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":98,"mirror_url":null,"open_issues_count":20,"forks":98,"open_issues":20,"watchers":145,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jmockit/jmockit1/pulls/303"},"html":{"href":"https://github.com/jmockit/jmockit1/pull/303"},"issue":{"href":"https://api.github.com/repos/jmockit/jmockit1/issues/303"},"comments":{"href":"https://api.github.com/repos/jmockit/jmockit1/issues/303/comments"},"review_comments":{"href":"https://api.github.com/repos/jmockit/jmockit1/pulls/303/comments"},"review_comment":{"href":"https://api.github.com/repos/jmockit/jmockit1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jmockit/jmockit1/pulls/303/commits"},"statuses":{"href":"https://api.github.com/repos/jmockit/jmockit1/statuses/5d6df282e70a26ca466ac679cc60cb3829f388e6"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":3,"review_comments":1,"commits":1,"additions":88,"deletions":8,"changed_files":4}}
{"actor":{"display_login":"rliesenfeld"}}