forked from INRIA/spoon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ix: Fix unqualified type becoming qualified in union type catch (INRI…
- Loading branch information
1 parent
803655a
commit 1102f31
Showing
4 changed files
with
65 additions
and
3 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
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
11 changes: 11 additions & 0 deletions
11
...test/java/spoon/test/trycatch/testclasses/CatcherWithQualifiedAndUnqualifiedTypeRefs.java
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,11 @@ | ||
package spoon.test.trycatch.testclasses; | ||
|
||
public class CatcherWithQualifiedAndUnqualifiedTypeRefs { | ||
public static void main(String[] args) { | ||
try { | ||
throw new InterruptedException(); | ||
} catch (InterruptedException | java.lang.RuntimeException e) { | ||
// pass | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/test/java/spoon/test/trycatch/testclasses/MultipleUnqualifiedTypesInSingleCatcher.java
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,11 @@ | ||
package spoon.test.trycatch.testclasses; | ||
|
||
class MultipleUnqualifiedTypesInSingleCatcher { | ||
public static void main(String[] args) { | ||
try { | ||
throw new InterruptedException(); | ||
} catch (InterruptedException | RuntimeException e) { | ||
// pass | ||
} | ||
} | ||
} |