[logback-dev] svn commit: r2197 - logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/corpus
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Mon Mar 9 11:43:42 CET 2009
Author: ceki
Date: Mon Mar 9 11:43:41 2009
New Revision: 2197
Modified:
logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/corpus/ExceptionBuilder.java
Log:
make the code compile with JDK 1.5
Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/corpus/ExceptionBuilder.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/corpus/ExceptionBuilder.java (original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/corpus/ExceptionBuilder.java Mon Mar 9 11:43:41 2009
@@ -9,9 +9,10 @@
*/
package ch.qos.logback.classic.corpus;
-import java.io.IOException;
import java.util.Random;
+import javax.management.remote.JMXProviderException;
+
public class ExceptionBuilder {
static Throwable build(Random r, double nestingProbability) {
@@ -33,7 +34,7 @@
switch(exType) {
case 0: return new IllegalArgumentException("an illegal argument was passed", cause);
case 1: return new Exception("this is a test", cause);
- case 2: return new IOException("an io error occured", cause);
+ case 2: return new JMXProviderException("jmx provider exception error occured", cause);
case 3: return new OutOfMemoryError("ran out of memory");
}
return null;
More information about the logback-dev
mailing list