< prev index next >

src/com/sun/javatest/InterviewParameters.java

Print this page
rev 145 : 7902225: InterviewParameters, EditJTI warnings: unreachable catch clause
Reviewed-by: jjg

@@ -1137,14 +1137,11 @@
         if (testSuitePath != null) {
             try {
                 testSuite = TestSuite.open(testSuitePath);
             }
             catch (FileNotFoundException e) {
-                throw new Fault(i18n, "ip.cantFindTestSuite", testSuitePath);
-            }
-            catch (IOException e) {
-                throw new Fault(i18n, "ip.cantOpenTestSuite", new Object[] { testSuitePath, e });
+                throw new Fault(i18n, "ip.cantFindTestSuite", new Object[] { testSuitePath, e });
             }
             catch (TestSuite.Fault e) {
                 throw new Fault(i18n, "ip.cantOpenTestSuite", new Object[] { testSuitePath, e.getMessage() });
             }
         }

@@ -1163,14 +1160,11 @@
                 }
                 else
                     workDir = WorkDirectory.open(workDirPath, testSuite);
             }
             catch (FileNotFoundException e) {
-                throw new Fault(i18n, "ip.cantFindWorkDir", workDirPath);
-            }
-            catch (IOException e) {
-                throw new Fault(i18n, "ip.cantOpenWorkDir", new Object[] { workDirPath, e });
+                throw new Fault(i18n, "ip.cantFindWorkDir", new Object[] { workDirPath, e });
             }
             catch (WorkDirectory.Fault e) {
                 throw new Fault(i18n, "ip.cantOpenWorkDir", new Object[] { workDirPath, e.getMessage() });
             }
         }
< prev index next >