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

Method invoke

src/com/sun/jna/Native.java:1316–1321  ·  view source on GitHub ↗
(Object proxy, Method method, Object[] args)

Source from the content-addressed store, hash-verified

1314 final Library.Handler handler = (Library.Handler)ih;
1315 InvocationHandler newHandler = new InvocationHandler() {
1316 @Override
1317 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
1318 synchronized(handler.getNativeLibrary()) {
1319 return handler.invoke(library, method, args);
1320 }
1321 }
1322 };
1323 return (Library)Proxy.newProxyInstance(cls.getClassLoader(),
1324 cls.getInterfaces(),

Callers

nothing calls this directly

Calls 2

invokeMethod · 0.65
getNativeLibraryMethod · 0.45

Tested by

no test coverage detected