Author: mturk
Date: Fri Apr 29 06:11:28 2011
New Revision: 1097699

URL: http://svn.apache.org/viewvc?rev=1097699&view=rev
Log:
First phase of using IOException

Added:
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/ClosedDescriptorException.java
      - copied, changed from r1097685, 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ClosedDescriptorException.java
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/InvalidDescriptorException.java
      - copied, changed from r1097695, 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/InvalidDescriptorException.java
Removed:
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ClosedDescriptorException.java
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/InvalidDescriptorException.java
Modified:
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Mutex.java
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Semaphore.java
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Shm.java
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/FcntlMutex.java
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/Posix.java
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/PosixSemaphore.java
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/PosixShm.java
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/SysVMutex.java
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/SysVShm.java
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/InvalidHandleException.java
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/Security.java
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/Win32.java
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/WindowsMutex.java
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/WindowsSemaphore.java
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/WindowsShm.java

Modified: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Mutex.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Mutex.java?rev=1097699&r1=1097698&r2=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Mutex.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Mutex.java
 Fri Apr 29 06:11:28 2011
@@ -111,7 +111,7 @@ public abstract class Mutex
      *
      */
     public abstract void acquire()
-        throws SystemException;
+        throws RuntimeIOException, SystemException;
 
     /**
      * Acquires a permit from this semaphore, only if one is available
@@ -119,21 +119,21 @@ public abstract class Mutex
      *
      */
     public abstract boolean tryAcquire()
-        throws SystemException;
+        throws RuntimeIOException, SystemException;
 
     /**
      * Releases a permit.
      *
      */
     public abstract void release()
-        throws SystemException;
+        throws RuntimeIOException, SystemException;
 
     /**
      * Closes the semaphore.
      *
      */
     public abstract void close()
-        throws SystemException;
+        throws RuntimeIOException, SystemException;
 
     /**
      * Get Mutex name.

Modified: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Semaphore.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Semaphore.java?rev=1097699&r1=1097698&r2=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Semaphore.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Semaphore.java
 Fri Apr 29 06:11:28 2011
@@ -15,6 +15,8 @@
  */
 package org.apache.commons.runtime;
 
+import org.apache.commons.runtime.io.RuntimeIOException;
+
 /**
  * Semaphore class.
  * <p>
@@ -83,7 +85,7 @@ public abstract class Semaphore
      *
      */
     public abstract void acquire()
-        throws SystemException;
+        throws RuntimeIOException, SystemException;
 
     /**
      * Acquires a permit from this semaphore, only if one is available
@@ -91,28 +93,28 @@ public abstract class Semaphore
      *
      */
     public abstract boolean tryAcquire()
-        throws SystemException;
+        throws RuntimeIOException, SystemException;
 
     /**
      * Releases a permit.
      *
      */
     public abstract void release()
-        throws SystemException;
+        throws RuntimeIOException, SystemException;
 
     /**
      * Clears the Semaphore.
      *
      */
     public abstract void clear()
-        throws SystemException;
+        throws RuntimeIOException, SystemException;
 
     /**
      * Closes the semaphore.
      *
      */
     public abstract void close()
-        throws SystemException;
+        throws RuntimeIOException, SystemException;
 
     /**
      * Get Semaphore name.

Modified: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Shm.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Shm.java?rev=1097699&r1=1097698&r2=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Shm.java 
(original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Shm.java 
Fri Apr 29 06:11:28 2011
@@ -16,6 +16,7 @@
 package org.apache.commons.runtime;
 
 import org.apache.commons.runtime.io.Syncable;
+import org.apache.commons.runtime.io.RuntimeIOException;
 import java.io.IOException;
 import java.io.SyncFailedException;
 
@@ -73,7 +74,7 @@ public abstract class Shm implements Syn
      * suitable (unused) address at which to attach the segment.
      */
     public abstract Pointer attach(long address, boolean readOnly)
-        throws SystemException;
+        throws RuntimeIOException, SystemException;
 
     /**
      * Attaches the shared memory segment to the address
@@ -82,7 +83,7 @@ public abstract class Shm implements Syn
      * suitable (unused) address at which to attach the segment.
      */
     public Pointer attach(boolean readOnly)
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         return attach(0L, readOnly);
     }
@@ -94,7 +95,7 @@ public abstract class Shm implements Syn
      * by the attaching attach() call.
      */
     public abstract void detach()
-        throws SystemException;
+        throws RuntimeIOException, SystemException;
 
     /**
      * Returns the shared memory size.
@@ -150,7 +151,7 @@ public abstract class Shm implements Syn
      *
      */
     public abstract void close()
-        throws SystemException;
+        throws RuntimeIOException, SystemException;
 
     /**
      * Get Shm name.

Copied: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/ClosedDescriptorException.java
 (from r1097685, 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ClosedDescriptorException.java)
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/ClosedDescriptorException.java?p2=commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/ClosedDescriptorException.java&p1=commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ClosedDescriptorException.java&r1=1097685&r2=1097699&rev=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ClosedDescriptorException.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/ClosedDescriptorException.java
 Fri Apr 29 06:11:28 2011
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-package org.apache.commons.runtime;
+package org.apache.commons.runtime.io;
 import java.io.IOException;
 
 /**

Copied: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/InvalidDescriptorException.java
 (from r1097695, 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/InvalidDescriptorException.java)
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/InvalidDescriptorException.java?p2=commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/InvalidDescriptorException.java&p1=commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/InvalidDescriptorException.java&r1=1097695&r2=1097699&rev=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/InvalidDescriptorException.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/InvalidDescriptorException.java
 Fri Apr 29 06:11:28 2011
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-package org.apache.commons.runtime;
+package org.apache.commons.runtime.io;
 
 /**
  * InvalidDescriptorException thrown when an attempt is made to
@@ -23,7 +23,7 @@ package org.apache.commons.runtime;
  *
  * @since Runtime 1.0
  */
-public class InvalidDescriptorException extends SystemException
+public class InvalidDescriptorException extends RuntimeIOException
 {
 
     public InvalidDescriptorException()

Modified: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/FcntlMutex.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/FcntlMutex.java?rev=1097699&r1=1097698&r2=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/FcntlMutex.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/FcntlMutex.java
 Fri Apr 29 06:11:28 2011
@@ -21,8 +21,9 @@ import org.apache.commons.runtime.Status
 import org.apache.commons.runtime.AlreadyExistsException;
 import org.apache.commons.runtime.InvalidArgumentException;
 import org.apache.commons.runtime.NoSuchObjectException;
-import org.apache.commons.runtime.ClosedDescriptorException;
 import org.apache.commons.runtime.SystemException;
+import org.apache.commons.runtime.io.RuntimeIOException;
+import org.apache.commons.runtime.io.ClosedDescriptorException;
 
 /**
  * FcntlMutex class.
@@ -72,7 +73,7 @@ final class FcntlMutex extends Mutex
     }
 
     public void acquire()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (fd == -1)
             throw new ClosedDescriptorException();
@@ -82,7 +83,7 @@ final class FcntlMutex extends Mutex
     }
 
     public boolean tryAcquire()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (fd == -1)
             throw new ClosedDescriptorException();
@@ -95,7 +96,7 @@ final class FcntlMutex extends Mutex
     }
 
     public void release()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (fd == -1)
             throw new ClosedDescriptorException();
@@ -105,7 +106,7 @@ final class FcntlMutex extends Mutex
     }
 
     public void close()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (fd == -1)
             throw new ClosedDescriptorException();

Modified: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/Posix.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/Posix.java?rev=1097699&r1=1097698&r2=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/Posix.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/Posix.java
 Fri Apr 29 06:11:28 2011
@@ -19,8 +19,9 @@ import org.apache.commons.runtime.Pointe
 import org.apache.commons.runtime.Status;
 import org.apache.commons.runtime.AlreadyExistsException;
 import org.apache.commons.runtime.NoSuchObjectException;
-import org.apache.commons.runtime.ClosedDescriptorException;
 import org.apache.commons.runtime.SystemException;
+import org.apache.commons.runtime.io.RuntimeIOException;
+import org.apache.commons.runtime.io.ClosedDescriptorException;
 
 /**
  * Posix Api class.

Modified: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/PosixSemaphore.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/PosixSemaphore.java?rev=1097699&r1=1097698&r2=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/PosixSemaphore.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/PosixSemaphore.java
 Fri Apr 29 06:11:28 2011
@@ -22,8 +22,9 @@ import org.apache.commons.runtime.Alread
 import org.apache.commons.runtime.InvalidArgumentException;
 import org.apache.commons.runtime.NameTooLongException;
 import org.apache.commons.runtime.NoSuchObjectException;
-import org.apache.commons.runtime.ClosedDescriptorException;
 import org.apache.commons.runtime.SystemException;
+import org.apache.commons.runtime.io.RuntimeIOException;
+import org.apache.commons.runtime.io.ClosedDescriptorException;
 
 /**
  * PosixSemaphore class.
@@ -106,7 +107,7 @@ final class PosixSemaphore extends Semap
     }
 
     public void acquire()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (sd == 0L)
             throw new ClosedDescriptorException();
@@ -116,7 +117,7 @@ final class PosixSemaphore extends Semap
     }
 
     public boolean tryAcquire()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (sd == 0L)
             throw new ClosedDescriptorException();
@@ -129,7 +130,7 @@ final class PosixSemaphore extends Semap
     }
 
     public void release()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (sd == 0L)
             throw new ClosedDescriptorException();
@@ -139,7 +140,7 @@ final class PosixSemaphore extends Semap
     }
 
     public void clear()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         boolean once = false;
         
@@ -164,7 +165,7 @@ final class PosixSemaphore extends Semap
     }
 
     public void close()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         int rc;
         if (sd == 0L)

Modified: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/PosixShm.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/PosixShm.java?rev=1097699&r1=1097698&r2=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/PosixShm.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/PosixShm.java
 Fri Apr 29 06:11:28 2011
@@ -22,9 +22,10 @@ import org.apache.commons.runtime.Status
 import org.apache.commons.runtime.AlreadyExistsException;
 import org.apache.commons.runtime.InvalidArgumentException;
 import org.apache.commons.runtime.NoSuchObjectException;
-import org.apache.commons.runtime.ClosedDescriptorException;
 import org.apache.commons.runtime.SystemException;
 import org.apache.commons.runtime.io.Syncable;
+import org.apache.commons.runtime.io.RuntimeIOException;
+import org.apache.commons.runtime.io.ClosedDescriptorException;
 import java.io.IOException;
 import java.io.SyncFailedException;
 
@@ -102,7 +103,7 @@ final class PosixShm extends Shm
 
     @Override
     public final Pointer attach(long addr, boolean readOnly)
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (fd == -1)
             throw new ClosedDescriptorException();
@@ -127,7 +128,7 @@ final class PosixShm extends Shm
 
     @Override
     public final void detach()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (fd == -1)
             throw new ClosedDescriptorException();
@@ -166,7 +167,7 @@ final class PosixShm extends Shm
 
     @Override
     public final void close()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (fd == -1)
             throw new ClosedDescriptorException();

Modified: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/SysVMutex.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/SysVMutex.java?rev=1097699&r1=1097698&r2=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/SysVMutex.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/SysVMutex.java
 Fri Apr 29 06:11:28 2011
@@ -20,9 +20,10 @@ import org.apache.commons.runtime.Status
 import org.apache.commons.runtime.AlreadyExistsException;
 import org.apache.commons.runtime.NoSuchObjectException;
 import org.apache.commons.runtime.InvalidArgumentException;
-import org.apache.commons.runtime.ClosedDescriptorException;
 import org.apache.commons.runtime.OperationNotImplementedException;
 import org.apache.commons.runtime.SystemException;
+import org.apache.commons.runtime.io.RuntimeIOException;
+import org.apache.commons.runtime.io.ClosedDescriptorException;
 
 /**
  * SysVMutex class.
@@ -73,7 +74,7 @@ final class SysVMutex extends Mutex
     }
 
     public void acquire()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (fd == -1)
             throw new ClosedDescriptorException();
@@ -83,7 +84,7 @@ final class SysVMutex extends Mutex
     }
 
     public boolean tryAcquire()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (fd == -1)
             throw new ClosedDescriptorException();
@@ -96,7 +97,7 @@ final class SysVMutex extends Mutex
     }
 
     public void release()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (fd == -1)
             throw new ClosedDescriptorException();
@@ -106,7 +107,7 @@ final class SysVMutex extends Mutex
     }
 
     public void close()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (fd == -1)
             throw new ClosedDescriptorException();

Modified: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/SysVShm.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/SysVShm.java?rev=1097699&r1=1097698&r2=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/SysVShm.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/unix/SysVShm.java
 Fri Apr 29 06:11:28 2011
@@ -21,9 +21,10 @@ import org.apache.commons.runtime.Status
 import org.apache.commons.runtime.AlreadyExistsException;
 import org.apache.commons.runtime.InvalidArgumentException;
 import org.apache.commons.runtime.NoSuchObjectException;
-import org.apache.commons.runtime.ClosedDescriptorException;
 import org.apache.commons.runtime.SystemException;
 import org.apache.commons.runtime.io.Syncable;
+import org.apache.commons.runtime.io.RuntimeIOException;
+import org.apache.commons.runtime.io.ClosedDescriptorException;
 import java.io.IOException;
 import java.io.SyncFailedException;
 
@@ -90,7 +91,7 @@ final class SysVShm extends Shm
 
     @Override
     public final Pointer attach(long addr, boolean readOnly)
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (fd == -1)
             throw new ClosedDescriptorException();
@@ -110,7 +111,7 @@ final class SysVShm extends Shm
 
     @Override
     public final void detach()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (fd == -1)
             throw new ClosedDescriptorException();
@@ -149,7 +150,7 @@ final class SysVShm extends Shm
 
     @Override
     public final void close()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (fd == -1)
             throw new ClosedDescriptorException();

Modified: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/InvalidHandleException.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/InvalidHandleException.java?rev=1097699&r1=1097698&r2=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/InvalidHandleException.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/InvalidHandleException.java
 Fri Apr 29 06:11:28 2011
@@ -15,7 +15,7 @@
  */
 
 package org.apache.commons.runtime.platform.windows;
-import org.apache.commons.runtime.InvalidDescriptorException;
+import org.apache.commons.runtime.io.InvalidDescriptorException;
 
 /**
  * InvalidHandleException thrown when an attempt is made to

Modified: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/Security.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/Security.java?rev=1097699&r1=1097698&r2=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/Security.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/Security.java
 Fri Apr 29 06:11:28 2011
@@ -20,9 +20,10 @@ import org.apache.commons.runtime.Errno;
 import org.apache.commons.runtime.Status;
 import org.apache.commons.runtime.AlreadyExistsException;
 import org.apache.commons.runtime.NoSuchObjectException;
-import org.apache.commons.runtime.ClosedDescriptorException;
 import org.apache.commons.runtime.SystemException;
 import org.apache.commons.runtime.util.Utils;
+import org.apache.commons.runtime.io.RuntimeIOException;
+import org.apache.commons.runtime.io.ClosedDescriptorException;
 
 import java.util.concurrent.ConcurrentHashMap;
 

Modified: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/Win32.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/Win32.java?rev=1097699&r1=1097698&r2=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/Win32.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/Win32.java
 Fri Apr 29 06:11:28 2011
@@ -20,8 +20,9 @@ import org.apache.commons.runtime.Pointe
 import org.apache.commons.runtime.Status;
 import org.apache.commons.runtime.AlreadyExistsException;
 import org.apache.commons.runtime.NoSuchObjectException;
-import org.apache.commons.runtime.ClosedDescriptorException;
 import org.apache.commons.runtime.SystemException;
+import org.apache.commons.runtime.io.RuntimeIOException;
+import org.apache.commons.runtime.io.ClosedDescriptorException;
 
 /**
  * Win32 API class.

Modified: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/WindowsMutex.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/WindowsMutex.java?rev=1097699&r1=1097698&r2=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/WindowsMutex.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/WindowsMutex.java
 Fri Apr 29 06:11:28 2011
@@ -22,6 +22,7 @@ import org.apache.commons.runtime.Alread
 import org.apache.commons.runtime.InvalidArgumentException;
 import org.apache.commons.runtime.NoSuchObjectException;
 import org.apache.commons.runtime.SystemException;
+import org.apache.commons.runtime.io.RuntimeIOException;
 
 /**
  * WindowsMutex class.
@@ -72,7 +73,7 @@ final class WindowsMutex extends Mutex
     }
 
     public void acquire()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (handle == 0)
             throw new InvalidHandleException();
@@ -82,7 +83,7 @@ final class WindowsMutex extends Mutex
     }
 
     public boolean tryAcquire()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (handle == 0)
             throw new InvalidHandleException();
@@ -95,7 +96,7 @@ final class WindowsMutex extends Mutex
     }
 
     public void release()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (handle == 0)
             throw new InvalidHandleException();
@@ -105,7 +106,7 @@ final class WindowsMutex extends Mutex
     }
 
     public void close()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (handle == 0)
             throw new InvalidHandleException();

Modified: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/WindowsSemaphore.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/WindowsSemaphore.java?rev=1097699&r1=1097698&r2=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/WindowsSemaphore.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/WindowsSemaphore.java
 Fri Apr 29 06:11:28 2011
@@ -22,6 +22,7 @@ import org.apache.commons.runtime.Invali
 import org.apache.commons.runtime.NoSuchObjectException;
 import org.apache.commons.runtime.SystemException;
 import org.apache.commons.runtime.Status;
+import org.apache.commons.runtime.io.RuntimeIOException;
 
 /**
  * WindowsSemaphore class.
@@ -79,7 +80,7 @@ final class WindowsSemaphore extends Sem
     }
 
     public void acquire()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (handle == 0)
             throw new InvalidHandleException();
@@ -89,7 +90,7 @@ final class WindowsSemaphore extends Sem
     }
 
     public boolean tryAcquire()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (handle == 0)
             throw new InvalidHandleException();
@@ -102,7 +103,7 @@ final class WindowsSemaphore extends Sem
     }
 
     public void release()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (handle == 0)
             throw new InvalidHandleException();
@@ -112,7 +113,7 @@ final class WindowsSemaphore extends Sem
     }
 
     public void clear()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         boolean once = false;
 
@@ -137,7 +138,7 @@ final class WindowsSemaphore extends Sem
     }
 
     public void close()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (handle == 0)
             throw new InvalidHandleException();

Modified: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/WindowsShm.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/WindowsShm.java?rev=1097699&r1=1097698&r2=1097699&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/WindowsShm.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/WindowsShm.java
 Fri Apr 29 06:11:28 2011
@@ -22,9 +22,10 @@ import org.apache.commons.runtime.Status
 import org.apache.commons.runtime.AlreadyExistsException;
 import org.apache.commons.runtime.InvalidArgumentException;
 import org.apache.commons.runtime.NoSuchObjectException;
-import org.apache.commons.runtime.ClosedDescriptorException;
 import org.apache.commons.runtime.SystemException;
 import org.apache.commons.runtime.io.Syncable;
+import org.apache.commons.runtime.io.RuntimeIOException;
+import org.apache.commons.runtime.io.ClosedDescriptorException;
 import java.io.IOException;
 import java.io.SyncFailedException;
 
@@ -124,7 +125,7 @@ final class WindowsShm extends Shm
 
     @Override
     public final Pointer attach(long addr, boolean readOnly)
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (handle == 0)
             throw new InvalidHandleException();
@@ -143,7 +144,7 @@ final class WindowsShm extends Shm
 
     @Override
     public final void detach()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (handle == 0)
             throw new InvalidHandleException();
@@ -182,7 +183,7 @@ final class WindowsShm extends Shm
 
     @Override
     public final void close()
-        throws SystemException
+        throws RuntimeIOException, SystemException
     {
         if (handle == 0)
             throw new InvalidHandleException();


Reply via email to