public static long resolveGlobalValue(Library library, GlobalValue globalValue, Method method) { if (library == null) { throw new IllegalArgumentException("No @" + Library.class.getName() + " annotation found on class " + method.getDeclaringClass().getName()); } long handle = getHandle(library.value()); String symbol = globalValue.symbol(); if (symbol == null || "".equals(symbol)) { symbol = method.getName(); } long f = Dl.resolve(handle, symbol); if (f == 0L) { f = Dl.resolve(handle, UNHIDDEN_SYMBOL_PREFIX + symbol); } if (f == 0L && !globalValue.optional()) { throw new UnsatisfiedLinkError("Failed to resolve symbol '" + symbol + "' " + "for method " + method + " with @GlobalValue annotation " + globalValue + " in library " + library); } return f; }
public static long resolveGlobalValue(Library library, GlobalValue globalValue, Method method) { if (library == null) { throw new IllegalArgumentException("No @" + Library.class.getName() + " annotation found on class " + method.getDeclaringClass().getName()); } long handle = getHandle(library.value()); String symbol = globalValue.symbol(); if (symbol == null || "".equals(symbol)) { symbol = method.getName(); } long f = Dl.resolve(handle, symbol); if (f == 0L) { f = Dl.resolve(handle, UNHIDDEN_SYMBOL_PREFIX + symbol); } if (f == 0L && !globalValue.optional()) { throw new UnsatisfiedLinkError("Failed to resolve symbol '" + symbol + "' " + "for method " + method + " with @GlobalValue annotation " + globalValue + " in library " + library); } return f; }
public static long resolveGlobalValue(Library library, GlobalValue globalValue, Method method) { if (library == null) { throw new IllegalArgumentException("No @" + Library.class.getName() + " annotation found on class " + method.getDeclaringClass().getName()); } long handle = getHandle(library.value()); String symbol = globalValue.symbol(); if (symbol == null || "".equals(symbol)) { symbol = method.getName(); } long f = Dl.resolve(handle, symbol); if (f == 0L) { f = Dl.resolve(handle, UNHIDDEN_SYMBOL_PREFIX + symbol); } if (f == 0L && !globalValue.optional()) { throw new UnsatisfiedLinkError("Failed to resolve symbol '" + symbol + "' " + "for method " + method + " with @GlobalValue annotation " + globalValue + " in library " + library); } return f; }
public static long resolveGlobalValue(Library library, GlobalValue globalValue, Method method) { if (library == null) { throw new IllegalArgumentException("No @" + Library.class.getName() + " annotation found on class " + method.getDeclaringClass().getName()); } long handle = getHandle(library.value()); String symbol = globalValue.symbol(); if (symbol == null || "".equals(symbol)) { symbol = method.getName(); } long f = Dl.resolve(handle, symbol); if (f == 0L) { f = Dl.resolve(handle, UNHIDDEN_SYMBOL_PREFIX + symbol); } if (f == 0L && !globalValue.optional()) { throw new UnsatisfiedLinkError("Failed to resolve symbol '" + symbol + "' " + "for method " + method + " with @GlobalValue annotation " + globalValue + " in library " + library); } return f; }
public static long resolveGlobalValue(Library library, GlobalValue globalValue, Method method) { if (library == null) { throw new IllegalArgumentException("No @" + Library.class.getName() + " annotation found on class " + method.getDeclaringClass().getName()); } long handle = getHandle(library.value()); String symbol = globalValue.symbol(); if (symbol == null || "".equals(symbol)) { symbol = method.getName(); } long f = Dl.resolve(handle, symbol); if (f == 0L) { f = Dl.resolve(handle, UNHIDDEN_SYMBOL_PREFIX + symbol); } if (f == 0L && !globalValue.optional()) { throw new UnsatisfiedLinkError("Failed to resolve symbol '" + symbol + "' " + "for method " + method + " with @GlobalValue annotation " + globalValue + " in library " + library); } return f; }
public static long resolveGlobalValue(Library library, GlobalValue globalValue, Method method) { if (library == null) { throw new IllegalArgumentException("No @" + Library.class.getName() + " annotation found on class " + method.getDeclaringClass().getName()); } long handle = getHandle(library.value()); String symbol = globalValue.symbol(); if (symbol == null || "".equals(symbol)) { symbol = method.getName(); } long f = Dl.resolve(handle, symbol); if (f == 0L) { f = Dl.resolve(handle, UNHIDDEN_SYMBOL_PREFIX + symbol); } if (f == 0L && !globalValue.optional()) { throw new UnsatisfiedLinkError("Failed to resolve symbol '" + symbol + "' " + "for method " + method + " with @GlobalValue annotation " + globalValue + " in library " + library); } return f; }