river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter_firmst...@apache.org
Subject svn commit: r1222914 - /river/jtsk/trunk/src/com/sun/jini/jeri/internal/runtime/Target.java
Date Sat, 24 Dec 2011 05:57:04 GMT
Author: peter_firmstone
Date: Sat Dec 24 05:57:04 2011
New Revision: 1222914

URL: http://svn.apache.org/viewvc?rev=1222914&view=rev
Log:
Fix exception cast and reset interrupt status

Modified:
    river/jtsk/trunk/src/com/sun/jini/jeri/internal/runtime/Target.java

Modified: river/jtsk/trunk/src/com/sun/jini/jeri/internal/runtime/Target.java
URL: http://svn.apache.org/viewvc/river/jtsk/trunk/src/com/sun/jini/jeri/internal/runtime/Target.java?rev=1222914&r1=1222913&r2=1222914&view=diff
==============================================================================
--- river/jtsk/trunk/src/com/sun/jini/jeri/internal/runtime/Target.java (original)
+++ river/jtsk/trunk/src/com/sun/jini/jeri/internal/runtime/Target.java Sat Dec 24 05:57:04
2011
@@ -466,7 +466,11 @@ final class Target {
                 }
             }), securityContext.getAccessControlContext());
         } catch (PrivilegedActionException e) {
-            throw (IOException) e.getException();
+            Exception ex = e.getException();
+            if ( ex instanceof IOException ) throw (IOException) ex;
+            if ( ex instanceof InterruptedException ) {
+                Thread.currentThread().interrupt();
+            }
         } finally {
             if (ccl != savedCcl || savedCcl != t.getContextClassLoader()) {
                 t.setContextClassLoader(savedCcl);



Mime
View raw message