{"action":"created","issue":{"url":"https://api.github.com/repos/mockito/mockito/issues/1378","repository_url":"https://api.github.com/repos/mockito/mockito","labels_url":"https://api.github.com/repos/mockito/mockito/issues/1378/labels{/name}","comments_url":"https://api.github.com/repos/mockito/mockito/issues/1378/comments","events_url":"https://api.github.com/repos/mockito/mockito/issues/1378/events","html_url":"https://github.com/mockito/mockito/pull/1378","id":316933121,"number":1378,"title":"Avoid circularity: avoid endless loop during mock creation","user":{"login":"raphw","id":4489328,"avatar_url":"https://avatars3.githubusercontent.com/u/4489328?v=4","gravatar_id":"","url":"https://api.github.com/users/raphw","html_url":"https://github.com/raphw","followers_url":"https://api.github.com/users/raphw/followers","following_url":"https://api.github.com/users/raphw/following{/other_user}","gists_url":"https://api.github.com/users/raphw/gists{/gist_id}","starred_url":"https://api.github.com/users/raphw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphw/subscriptions","organizations_url":"https://api.github.com/users/raphw/orgs","repos_url":"https://api.github.com/users/raphw/repos","events_url":"https://api.github.com/users/raphw/events{/privacy}","received_events_url":"https://api.github.com/users/raphw/received_events","type":"User","site_admin":false},"labels":[{"id":399992302,"url":"https://api.github.com/repos/mockito/mockito/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-23T18:38:18Z","updated_at":"2018-04-23T18:41:04Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/mockito/mockito/pulls/1378","html_url":"https://github.com/mockito/mockito/pull/1378","diff_url":"https://github.com/mockito/mockito/pull/1378.diff","patch_url":"https://github.com/mockito/mockito/pull/1378.patch"},"body":"If certain types a type for the first time during instrumentation while our mocking engine relies on the same types, this can cause a circularity as checking if an instance is a mock requires instances of the latter types what again returns to the latter mock checking routine what causes an endless loop. (Described in comment.) Fixes #1240.\r\n\r\nIt is a bit difficult to reproduce this issue in our tests. It mainly happens with classes generated by Kotlin or Scala and requires the inline mock maker and a JDK 9 or older. If we want to add such a test, we can copy the test from https://github.com/guenhter/mockito-final-class-kotlin-problem\r\n"},"comment":{"url":"https://api.github.com/repos/mockito/mockito/issues/comments/383679653","html_url":"https://github.com/mockito/mockito/pull/1378#issuecomment-383679653","issue_url":"https://api.github.com/repos/mockito/mockito/issues/1378","id":383679653,"user":{"login":"raphw","id":4489328,"avatar_url":"https://avatars3.githubusercontent.com/u/4489328?v=4","gravatar_id":"","url":"https://api.github.com/users/raphw","html_url":"https://github.com/raphw","followers_url":"https://api.github.com/users/raphw/followers","following_url":"https://api.github.com/users/raphw/following{/other_user}","gists_url":"https://api.github.com/users/raphw/gists{/gist_id}","starred_url":"https://api.github.com/users/raphw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphw/subscriptions","organizations_url":"https://api.github.com/users/raphw/orgs","repos_url":"https://api.github.com/users/raphw/repos","events_url":"https://api.github.com/users/raphw/events{/privacy}","received_events_url":"https://api.github.com/users/raphw/received_events","type":"User","site_admin":false},"created_at":"2018-04-23T18:41:04Z","updated_at":"2018-04-23T18:41:04Z","author_association":"MEMBER","body":"True, of course!"}}
{"actor":{"display_login":"raphw"}}