summaryrefslogtreecommitdiff
path: root/java/typeMigration/testData/refactoring/typeMigration/t130/after
diff options
context:
space:
mode:
Diffstat (limited to 'java/typeMigration/testData/refactoring/typeMigration/t130/after')
-rw-r--r--java/typeMigration/testData/refactoring/typeMigration/t130/after/Test.items12
-rw-r--r--java/typeMigration/testData/refactoring/typeMigration/t130/after/test.java18
2 files changed, 30 insertions, 0 deletions
diff --git a/java/typeMigration/testData/refactoring/typeMigration/t130/after/Test.items b/java/typeMigration/testData/refactoring/typeMigration/t130/after/Test.items
new file mode 100644
index 000000000000..056ae7968e06
--- /dev/null
+++ b/java/typeMigration/testData/refactoring/typeMigration/t130/after/Test.items
@@ -0,0 +1,12 @@
+Types:
+PsiMethodCallExpression:e.printStackTrace() : void
+PsiParameter:e : Test.E
+PsiReferenceExpression:e : Test.E
+PsiReferenceExpression:e : Test.E
+
+Conversions:
+e.printStackTrace() -> $
+
+New expression type changes:
+Fails:
+e->Test.E
diff --git a/java/typeMigration/testData/refactoring/typeMigration/t130/after/test.java b/java/typeMigration/testData/refactoring/typeMigration/t130/after/test.java
new file mode 100644
index 000000000000..67ed3db2315a
--- /dev/null
+++ b/java/typeMigration/testData/refactoring/typeMigration/t130/after/test.java
@@ -0,0 +1,18 @@
+class Test {
+ static class E extends Exception { }
+ static interface I { void i(); }
+ static class E1 extends E implements I { public void i() { } }
+ static class E2 extends E implements I { public void i() { } }
+
+ void m(boolean f) {
+ try {
+ if (f)
+ throw new E1();
+ else
+ throw new E2();
+ } catch (E e) {
+ e.printStackTrace();
+ e.i();
+ }
+ }
+} \ No newline at end of file