{"action":"created","issue":{"url":"https://api.github.com/repos/Sable/soot/issues/358","labels_url":"https://api.github.com/repos/Sable/soot/issues/358/labels{/name}","comments_url":"https://api.github.com/repos/Sable/soot/issues/358/comments","events_url":"https://api.github.com/repos/Sable/soot/issues/358/events","html_url":"https://github.com/Sable/soot/issues/358","id":57278715,"number":358,"title":"Exception in UnitThrowAnalysis","user":{"login":"bergerbd","id":2929266,"avatar_url":"https://avatars.githubusercontent.com/u/2929266?v=3","gravatar_id":"","url":"https://api.github.com/users/bergerbd","html_url":"https://github.com/bergerbd","followers_url":"https://api.github.com/users/bergerbd/followers","following_url":"https://api.github.com/users/bergerbd/following{/other_user}","gists_url":"https://api.github.com/users/bergerbd/gists{/gist_id}","starred_url":"https://api.github.com/users/bergerbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bergerbd/subscriptions","organizations_url":"https://api.github.com/users/bergerbd/orgs","repos_url":"https://api.github.com/users/bergerbd/repos","events_url":"https://api.github.com/users/bergerbd/events{/privacy}","received_events_url":"https://api.github.com/users/bergerbd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-11T05:38:50Z","updated_at":"2015-02-24T09:04:44Z","closed_at":null,"body":"Soot has some problems to jimplify a method. It seems that the type of the processed throw statement is bottom_type instead of an actual type. The error occurs if I load one of the following methods:\r\n\r\n```\r\n<android.support.v4.print.PrintHelperKitkat: android.graphics.Bitmap loadConstrainedBitmap(android.net.Uri,int)>\r\n<android.support.v4.app.NotificationManagerCompat: java.util.Set getEnabledListenerPackages(android.content.Context)>\r\n```\r\nI think Soot is using sdk level 14 (since it is the min sdk according to the manifest). \r\n\r\nVersion: HEAD\r\nStacktrace:\r\n```java\r\njava.lang.IllegalStateException: UnitThrowAnalysis StmtSwitch: type of throw argument is not a RefType!\r\n\tat soot.toolkits.exceptions.AbstractThrowAnalysis.mightThrowExplicitly(AbstractThrowAnalysis.java:65) ~[sootclasses.jar:trunk]\r\n\tat soot.toolkits.exceptions.UnitThrowAnalysis$UnitSwitch.caseThrowStmt(UnitThrowAnalysis.java:706) ~[sootclasses.jar:trunk]\r\n\tat soot.jimple.internal.JThrowStmt.apply(JThrowStmt.java:70) ~[sootclasses.jar:trunk]\r\n\tat soot.toolkits.exceptions.UnitThrowAnalysis.mightThrow(UnitThrowAnalysis.java:241) ~[sootclasses.jar:trunk]\r\n\tat soot.toolkits.graph.ExceptionalUnitGraph.getExceptionDests(ExceptionalUnitGraph.java:800) ~[sootclasses.jar:trunk]\r\n\tat soot.toolkits.graph.ExceptionalUnitGraph.buildHeadsAndTails(ExceptionalUnitGraph.java:763) ~[sootclasses.jar:trunk]\r\n\tat soot.toolkits.graph.ExceptionalUnitGraph.initialize(ExceptionalUnitGraph.java:293) ~[sootclasses.jar:trunk]\r\n\tat soot.toolkits.graph.ExceptionalUnitGraph.<init>(ExceptionalUnitGraph.java:159) ~[sootclasses.jar:trunk]\r\n\tat soot.toolkits.exceptions.TrapTightener.internalTransform(TrapTightener.java:79) ~[sootclasses.jar:trunk]\r\n\tat soot.BodyTransformer.transform(BodyTransformer.java:51) ~[sootclasses.jar:trunk]\r\n\tat soot.BodyTransformer.transform(BodyTransformer.java:58) ~[sootclasses.jar:trunk]\r\n\tat soot.BodyTransformer.transform(BodyTransformer.java:63) ~[sootclasses.jar:trunk]\r\n\tat soot.dexpler.DexBody.jimplify(DexBody.java:625) ~[sootclasses.jar:trunk]\r\n\tat soot.dexpler.DexMethod$1.getBody(DexMethod.java:150) ~[sootclasses.jar:trunk]\r\n\tat soot.SootMethod.getBodyFromMethodSource(SootMethod.java:91) ~[sootclasses.jar:trunk]\r\n\tat soot.SootMethod.retrieveActiveBody(SootMethod.java:324) ~[sootclasses.jar:trunk]\r\n... my code ...\r\n```"},"comment":{"url":"https://api.github.com/repos/Sable/soot/issues/comments/75721055","html_url":"https://github.com/Sable/soot/issues/358#issuecomment-75721055","issue_url":"https://api.github.com/repos/Sable/soot/issues/358","id":75721055,"user":{"login":"StevenArzt","id":2691304,"avatar_url":"https://avatars.githubusercontent.com/u/2691304?v=3","gravatar_id":"","url":"https://api.github.com/users/StevenArzt","html_url":"https://github.com/StevenArzt","followers_url":"https://api.github.com/users/StevenArzt/followers","following_url":"https://api.github.com/users/StevenArzt/following{/other_user}","gists_url":"https://api.github.com/users/StevenArzt/gists{/gist_id}","starred_url":"https://api.github.com/users/StevenArzt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StevenArzt/subscriptions","organizations_url":"https://api.github.com/users/StevenArzt/orgs","repos_url":"https://api.github.com/users/StevenArzt/repos","events_url":"https://api.github.com/users/StevenArzt/events{/privacy}","received_events_url":"https://api.github.com/users/StevenArzt/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T09:04:44Z","updated_at":"2015-02-24T09:04:44Z","body":"Normally, Soot should already run a dead code eliminator when reading in dex files. If this problem still exists with the newest nightly build of Soot, please send me the APK file to Steven.Arzt@cased.de"}}