MCPcopy Create free account
hub / github.com/java-native-access/jna / Paths

Interface Paths

test/com/sun/jna/Paths.java:31–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29import java.net.URLClassLoader;
30
31public interface Paths {
32 boolean USING_CLOVER = System.getProperty("java.class.path").indexOf("clover") != -1;
33 /** Use this as a parent class loader to ensure clover can be loaded. */
34 class CloverLoader extends URLClassLoader {
35 public CloverLoader() throws MalformedURLException{
36 this(null);
37 }
38 public CloverLoader(ClassLoader parent) throws MalformedURLException {
39 super(new URL[]{
40 new File(USING_CLOVER ? "lib/clover.jar" : "/dev/null").toURI().toURL()
41 }, parent);
42 }
43 }
44 String BUILDDIR = Platform.isWindowsCE()
45 ? "/Storage Card"
46 : System.getProperty("jna.builddir",
47 USING_CLOVER
48 ? "build.clover" : "build");
49 String CLASSES = BUILDDIR + (Platform.isWindowsCE() ? "" : "/classes");
50 String JNAJAR = BUILDDIR + "/jna.jar";
51
52 String TESTPATH = Platform.isWindowsCE()
53 ? "/Storage Card/"
54 : System.getProperty("jna.nativedir",
55 BUILDDIR + "/native-" + Platform.RESOURCE_PREFIX + "/");
56 String TESTJAR = BUILDDIR + "/jna-test.jar";
57 String TESTJAR2 = BUILDDIR + "/jna-test2.jar";
58 String TESTJAR3 = BUILDDIR + "/jna-test3.jar";
59}

Callers

nothing calls this directly

Implementers 7

JNALoadTesttest/com/sun/jna/JNALoadTest.java
PerformanceTesttest/com/sun/jna/PerformanceTest.java
DirectTesttest/com/sun/jna/DirectTest.java
LibraryLoadTesttest/com/sun/jna/LibraryLoadTest.java
CallbacksTesttest/com/sun/jna/CallbacksTest.java
WebStartTesttest/com/sun/jna/WebStartTest.java
NativeCustomSymbolProviderTesttest/com/sun/jna/NativeCustomSymbolPro

Calls 3

isWindowsCEMethod · 0.95
getPropertyMethod · 0.65
indexOfMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…