javaclass

Changeset

25:fe245dbbb3f1
2004-11-10 Paul Boddie raw files shortlog changelog graph Made the results of various tests more suggestive.
tests/ExceptionTest.java (file)
     1.1 --- a/tests/ExceptionTest.java	Wed Nov 10 16:50:43 2004 +0100
     1.2 +++ b/tests/ExceptionTest.java	Wed Nov 10 17:11:33 2004 +0100
     1.3 @@ -48,8 +48,9 @@
     1.4                  x = 2;
     1.5                  throw new MyOtherException();
     1.6              }
     1.7 +            x = 1;
     1.8          } finally {
     1.9 -            x = 1;
    1.10 +            x += 10;
    1.11          }
    1.12          return x;
    1.13      }
    1.14 @@ -61,12 +62,13 @@
    1.15              } else if (x == 1) {
    1.16                  throw new MyOtherException();
    1.17              }
    1.18 +            x = 1;
    1.19          } catch (MyException exc) {
    1.20              x = 3;
    1.21          } catch (MyOtherException exc) {
    1.22              x = 2;
    1.23          } finally {
    1.24 -            x = 1;
    1.25 +            x += 10;
    1.26          }
    1.27          return x;
    1.28      }