diff options
author | Sven Gothel <[email protected]> | 2013-06-20 19:51:57 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-06-20 19:51:57 +0200 |
commit | 9a0d4c81e8c38f454d7bb5cde433a32194d410fb (patch) | |
tree | fda303a3971da242d7dc6e1b136cbebcedf74c2d /src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java | |
parent | 2d8e25398e929f553c4524e9c57f083d90ba4e08 (diff) |
DynamicLinker*: Proper Override notation
Diffstat (limited to 'src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java')
-rw-r--r-- | src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java b/src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java index 158bd7c..b95f204 100644 --- a/src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java +++ b/src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java @@ -45,13 +45,14 @@ public final class WindowsDynamicLinkerImpl implements DynamicLinker { private static native long LoadLibraryW(java.lang.String lpLibFileName); - // --- Begin CustomJavaCode .cfg declarations + @Override public final long openLibraryLocal(String libraryName, boolean debug) throws SecurityException { // How does that work under Windows ? // Don't know .. so it's an alias for the time being return openLibraryGlobal(libraryName, debug); } + @Override public final long openLibraryGlobal(String libraryName, boolean debug) throws SecurityException { SecurityUtil.checkLinkPermission(libraryName); long handle = LoadLibraryW(libraryName); @@ -62,6 +63,7 @@ public final class WindowsDynamicLinkerImpl implements DynamicLinker { return handle; } + @Override public final long lookupSymbol(long libraryHandle, String symbolName) { String _symbolName = symbolName; long addr = GetProcAddressA(libraryHandle, _symbolName); @@ -81,6 +83,7 @@ public final class WindowsDynamicLinkerImpl implements DynamicLinker { return addr; } + @Override public final long lookupSymbolGlobal(String symbolName) { if(DEBUG_LOOKUP) { System.err.println("lookupSymbolGlobal: Not supported on Windows"); @@ -89,10 +92,12 @@ public final class WindowsDynamicLinkerImpl implements DynamicLinker { return 0; } + @Override public final void closeLibrary(long libraryHandle) { FreeLibrary(libraryHandle); } + @Override public final String getLastError() { final int err = GetLastError(); return "Last error: 0x"+Integer.toHexString(err)+" ("+err+")"; |