[jffi-next] 13/49: System.load() needs to be done after file is closed.

Tim Potter tpot-guest at moszumanska.debian.org
Wed Mar 4 04:51:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

tpot-guest pushed a commit to annotated tag upstream/1.0.10
in repository jffi-next.

commit fdf5a0339750b4e684978a381c0ec272d665fa2e
Author: Wayne Meissner <wmeissner at gmail.com>
Date:   Fri Jan 7 06:16:18 2011 +1000

    System.load() needs to be done after file is closed.
---
 src/com/kenai/jffi/Init.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/com/kenai/jffi/Init.java b/src/com/kenai/jffi/Init.java
index ff7e7b2..4a1ab34 100644
--- a/src/com/kenai/jffi/Init.java
+++ b/src/com/kenai/jffi/Init.java
@@ -133,8 +133,6 @@ final class Init {
                 pos += os.getChannel().transferFrom(srcChannel, pos, Math.max(4096, is.available()));
             }
 
-            System.load(dstFile.getAbsolutePath());
-
         } catch (IOException ex) {
             throw new UnsatisfiedLinkError(ex.getMessage());
 
@@ -148,6 +146,8 @@ final class Init {
                 throw new RuntimeException(ex);
             }
         }
+        
+        System.load(dstFile.getAbsolutePath());
     }
 
     /**

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jffi-next.git



More information about the pkg-java-commits mailing list