From d12e4d4ea279998b27457691038e709879dcaca6 Mon Sep 17 00:00:00 2001
From: Xerxes RĂ„nby <xerxes@gudinna.com>
Date: Wed, 12 Aug 2015 15:47:16 +0200
Subject: Bug 1194: NativeLibrary: Remove dangerous search paths using the JRE
 extension mechanism

NativeLibrary:
    API change: Removed searchSystemPathFirst argument to the
    open and enumerateLibraryPaths methods.
    Removed the generic sun.boot.library.path system path and the
    MacOS specific Frameworks paths from enumerateLibraryPaths.

JNILibLoaderBase, PlatformPropsImpl & TestElfReader01:
   Updated to handle the NativeLibrary API change.

This change will prevent JogAmp modules to pickup and load unsupported
and old SUN JOGL 1 natives that may have been deployed with the JRE.
---
 src/junit/com/jogamp/common/os/TestElfReader01.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/junit/com/jogamp/common/os/TestElfReader01.java')

diff --git a/src/junit/com/jogamp/common/os/TestElfReader01.java b/src/junit/com/jogamp/common/os/TestElfReader01.java
index 980a17a..fe03728 100644
--- a/src/junit/com/jogamp/common/os/TestElfReader01.java
+++ b/src/junit/com/jogamp/common/os/TestElfReader01.java
@@ -38,7 +38,7 @@ public class TestElfReader01 extends SingletonJunitCase {
     }
     static File findJVMLib(final String libName) {
         final ClassLoader cl = TestElfReader01.class.getClassLoader();
-        final List<String> possibleLibPaths = NativeLibrary.enumerateLibraryPaths(libName, libName, libName, true, cl);
+        final List<String> possibleLibPaths = NativeLibrary.enumerateLibraryPaths(libName, libName, libName, cl);
         for(int i=0; i<possibleLibPaths.size(); i++) {
             final String libPath = possibleLibPaths.get(i);
             final File lib = new File(libPath);
-- 
cgit v1.2.3