Update of 
/var/cvs/contributions/didactor2/src/education/java/nl/didactor/education/builders
In directory james.mmbase.org:/tmp/cvs-serv19930

Modified Files:
        CouplingQuestionBuilder.java RankingQuestionBuilder.java 
Log Message:
Made these compile against HEAD


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/education/java/nl/didactor/education/builders


Index: CouplingQuestionBuilder.java
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/java/nl/didactor/education/builders/CouplingQuestionBuilder.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- CouplingQuestionBuilder.java        20 Jun 2008 12:37:39 -0000      1.2
+++ CouplingQuestionBuilder.java        20 Jun 2008 12:43:45 -0000      1.3
@@ -11,7 +11,7 @@
 /**
  * This builder class can score the answer given to a Coupling
  * question.
- * @version $Id: CouplingQuestionBuilder.java,v 1.2 2008/06/20 12:37:39 
michiel Exp $
+ * @version $Id: CouplingQuestionBuilder.java,v 1.3 2008/06/20 12:43:45 
michiel Exp $
  */
 public class CouplingQuestionBuilder extends QuestionBuilder {
 
@@ -121,7 +121,7 @@
             // All tests OK: this is a correct answer
             return 1;
 
-        } catch (SearchQueryException e) {
+        } catch (Throwable e) { // only needed in mmbase 1.8
             log.error(e.getMessage(), e);
         }
         return 1;


Index: RankingQuestionBuilder.java
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/java/nl/didactor/education/builders/RankingQuestionBuilder.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- RankingQuestionBuilder.java 1 Nov 2004 12:52:44 -0000       1.1
+++ RankingQuestionBuilder.java 20 Jun 2008 12:43:45 -0000      1.2
@@ -4,6 +4,8 @@
 import org.mmbase.storage.search.implementation.*;
 import org.mmbase.module.corebuilders.RelDef;
 import java.util.*;
+import org.mmbase.util.logging.Logger;
+import org.mmbase.util.logging.Logging;
 
 /**
  * This builder class can score the answer given to a Ranking
@@ -11,6 +13,7 @@
  */
 public class RankingQuestionBuilder extends QuestionBuilder {
 
+    private static final Logger log = 
Logging.getLoggerInstance(RankingQuestionBuilder.class);
     /**
      * Get the score for the given answer to a question. 
      */
@@ -87,9 +90,8 @@
                     return 0;
                 }
             }
-        } catch (SearchQueryException e) {
-            System.err.println("Exception while performing query: " + e);
-            e.printStackTrace(System.err);
+        } catch (Throwable e) { // only needed in mmbase 1.8
+            log.error(e.getMessage(), e);
         }
 
         return 1;
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to