-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #910 from soot-oss/fix/redundantTrapHandlerCheck
Add check for redundant trap handlers
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
sootup.jimple.parser/src/test/java/resources/jimple/RedundantTrapHandler.jimple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
class RedundantTrapHandler extends java.lang.Object | ||
{ | ||
|
||
void method() | ||
{ | ||
unknown $stack1, l1, l2; | ||
|
||
l1 = 0; | ||
|
||
label1: | ||
$stack1 = l1; | ||
|
||
label2: | ||
l2 := @caughtexception; | ||
|
||
return; | ||
|
||
catch java.lang.Exception from label1 to label1 with label2; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters