{"action":"created","issue":{"url":"https://api.github.com/repos/jayway/powermock/issues/465","labels_url":"https://api.github.com/repos/jayway/powermock/issues/465/labels{/name}","comments_url":"https://api.github.com/repos/jayway/powermock/issues/465/comments","events_url":"https://api.github.com/repos/jayway/powermock/issues/465/events","html_url":"https://github.com/jayway/powermock/issues/465","id":97195241,"number":465,"title":"Mocked system class is not invoked when it's casted into another (non-final) type","user":{"login":"johanhaleby","id":187029,"avatar_url":"https://avatars.githubusercontent.com/u/187029?v=3","gravatar_id":"","url":"https://api.github.com/users/johanhaleby","html_url":"https://github.com/johanhaleby","followers_url":"https://api.github.com/users/johanhaleby/followers","following_url":"https://api.github.com/users/johanhaleby/following{/other_user}","gists_url":"https://api.github.com/users/johanhaleby/gists{/gist_id}","starred_url":"https://api.github.com/users/johanhaleby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanhaleby/subscriptions","organizations_url":"https://api.github.com/users/johanhaleby/orgs","repos_url":"https://api.github.com/users/johanhaleby/repos","events_url":"https://api.github.com/users/johanhaleby/events{/privacy}","received_events_url":"https://api.github.com/users/johanhaleby/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jayway/powermock/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/jayway/powermock/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/jayway/powermock/labels/Priority-Medium","name":"Priority-Medium","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-25T05:41:51Z","updated_at":"2015-07-25T05:41:52Z","closed_at":null,"body":"_From [jonatan....@softhouse.se](https://code.google.com/u/103640218002720706174/) on June 10, 2013 01:47:34_\n\nWhat steps will reproduce the problem? 1. Mock a final system class such as StringBuilder \r\n2. Cast that instance into a CharSequence\r\n3. Call method and expect the mocked call to be invoked. What is the expected output? What do you see instead? The expected output is whatever the StringBuilder was mocked to do. Instead the non-mocked instance is used so mocked invocations aren't performed. What version of the product are you using? On what operating system? Powermock 1.5, Mac OS X 10.7.5 Please provide any additional information below. See the attached patch for test case and fix.\n\n\n\n_Original issue: http://code.google.com/p/powermock/issues/detail?id=445_"},"comment":{"url":"https://api.github.com/repos/jayway/powermock/issues/comments/124802402","html_url":"https://github.com/jayway/powermock/issues/465#issuecomment-124802402","issue_url":"https://api.github.com/repos/jayway/powermock/issues/465","id":124802402,"user":{"login":"johanhaleby","id":187029,"avatar_url":"https://avatars.githubusercontent.com/u/187029?v=3","gravatar_id":"","url":"https://api.github.com/users/johanhaleby","html_url":"https://github.com/johanhaleby","followers_url":"https://api.github.com/users/johanhaleby/followers","following_url":"https://api.github.com/users/johanhaleby/following{/other_user}","gists_url":"https://api.github.com/users/johanhaleby/gists{/gist_id}","starred_url":"https://api.github.com/users/johanhaleby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanhaleby/subscriptions","organizations_url":"https://api.github.com/users/johanhaleby/orgs","repos_url":"https://api.github.com/users/johanhaleby/repos","events_url":"https://api.github.com/users/johanhaleby/events{/privacy}","received_events_url":"https://api.github.com/users/johanhaleby/received_events","type":"User","site_admin":false},"created_at":"2015-07-25T05:41:52Z","updated_at":"2015-07-25T05:41:52Z","body":"_From [jonatan....@softhouse.se](https://code.google.com/u/103640218002720706174/) on June 09, 2013 16:57:53_\n\nThis issue is related to https://code.google.com/p/powermock/issues/detail?id=135 ."}}