river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter_firmst...@apache.org
Subject svn commit: r1557326 - in /river/jtsk/skunk/qa_refactor/trunk/src: com/sun/jini/thread/WakeupManager.java net/jini/config/Configuration.java
Date Sat, 11 Jan 2014 08:00:42 GMT
Author: peter_firmstone
Date: Sat Jan 11 08:00:42 2014
New Revision: 1557326

URL: http://svn.apache.org/r1557326
Log:
Altered Configuration interface to support generics and Object NO_DEFAULT values for backward
compatibility.

Swallowed RuntimeException in WakeupManager to ensure compliance with WakeupManagerTaskExceptionTest.

Modified:
    river/jtsk/skunk/qa_refactor/trunk/src/com/sun/jini/thread/WakeupManager.java
    river/jtsk/skunk/qa_refactor/trunk/src/net/jini/config/Configuration.java

Modified: river/jtsk/skunk/qa_refactor/trunk/src/com/sun/jini/thread/WakeupManager.java
URL: http://svn.apache.org/viewvc/river/jtsk/skunk/qa_refactor/trunk/src/com/sun/jini/thread/WakeupManager.java?rev=1557326&r1=1557325&r2=1557326&view=diff
==============================================================================
--- river/jtsk/skunk/qa_refactor/trunk/src/com/sun/jini/thread/WakeupManager.java (original)
+++ river/jtsk/skunk/qa_refactor/trunk/src/com/sun/jini/thread/WakeupManager.java Sat Jan
11 08:00:42 2014
@@ -657,7 +657,7 @@ public class WakeupManager {
 		    } catch (Throwable t) {
                         t.printStackTrace(System.out);
                         if (t instanceof Error) throw (Error) t;
-                        if (t instanceof RuntimeException) throw (RuntimeException) t;
+//                        if (t instanceof RuntimeException) throw (RuntimeException) t;
 			try {
 			    logger.log(Level.WARNING, 
 				       "task thread creation exception", t);

Modified: river/jtsk/skunk/qa_refactor/trunk/src/net/jini/config/Configuration.java
URL: http://svn.apache.org/viewvc/river/jtsk/skunk/qa_refactor/trunk/src/net/jini/config/Configuration.java?rev=1557326&r1=1557325&r2=1557326&view=diff
==============================================================================
--- river/jtsk/skunk/qa_refactor/trunk/src/net/jini/config/Configuration.java (original)
+++ river/jtsk/skunk/qa_refactor/trunk/src/net/jini/config/Configuration.java Sat Jan 11 08:00:42
2014
@@ -170,7 +170,7 @@ public interface Configuration {
     <T> T getEntry(String component,
 		    String name,
 		    Class<T> type,
-		    T defaultValue)
+		    Object defaultValue)
 	throws ConfigurationException;
 
     /**
@@ -230,7 +230,7 @@ public interface Configuration {
     <T> T getEntry(String component,
 		    String name,
 		    Class<T> type,
-		    T defaultValue,
+		    Object defaultValue,
 		    Object data)
 	throws ConfigurationException;
 }



Mime
View raw message