emul/src/main/java/java/lang/Throwable.java
branchemul
changeset 51 506ef276a0db
parent 49 0a115f1c6f3c
child 61 4b334950499d
     1.1 --- a/emul/src/main/java/java/lang/Throwable.java	Fri Sep 28 17:59:03 2012 +0200
     1.2 +++ b/emul/src/main/java/java/lang/Throwable.java	Sat Sep 29 06:34:18 2012 +0200
     1.3 @@ -917,7 +917,7 @@
     1.4                  // Use the sentinel for a zero-length list
     1.5                  suppressed = SUPPRESSED_SENTINEL;
     1.6              } else { // Copy Throwables to new list
     1.7 -                suppressed = new ArrayList<>(1);
     1.8 +                suppressed = new ArrayList<Throwable>(1);
     1.9                  for (Throwable t : suppressedExceptions) {
    1.10                      // Enforce constraints on suppressed exceptions in
    1.11                      // case of corrupt or malicious stream.
    1.12 @@ -1048,7 +1048,7 @@
    1.13              return;
    1.14  
    1.15          if (suppressedExceptions == SUPPRESSED_SENTINEL)
    1.16 -            suppressedExceptions = new ArrayList<>(1);
    1.17 +            suppressedExceptions = new ArrayList<Throwable>(1);
    1.18  
    1.19          suppressedExceptions.add(exception);
    1.20      }