diff options
Diffstat (limited to 'src/nativewindow')
4 files changed, 10 insertions, 10 deletions
diff --git a/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java b/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java index d0df41794..b0f5cb3f9 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java +++ b/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java @@ -189,7 +189,7 @@ public abstract class NativeWindowFactory { public Object run() { try { jawtUtilClass = Class.forName(JAWTUtilClassName, false, NativeWindowFactory.class.getClassLoader()); - jawtUtilInitMethod = jawtUtilClass.getDeclaredMethod("initSingleton", null); + jawtUtilInitMethod = jawtUtilClass.getDeclaredMethod("initSingleton", (Class[])null); jawtUtilInitMethod.setAccessible(true); jawtUtilGetJAWTToolkitMethod = jawtUtilClass.getDeclaredMethod("getJAWTToolkitLock", new Class[]{}); jawtUtilGetJAWTToolkitMethod.setAccessible(true); diff --git a/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java b/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java index e392e935f..d5811d9c5 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java +++ b/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java @@ -79,7 +79,7 @@ public class JAWTUtil { if (!headlessMode) { try { jC = Class.forName("jogamp.opengl.awt.Java2D"); - m = jC.getMethod("isQueueFlusherThread", null); + m = jC.getMethod("isQueueFlusherThread", (Class[])null); ok = true; } catch (Exception e) { } @@ -104,8 +104,8 @@ public class JAWTUtil { boolean _hasSunToolkitAWTLock = false; if (null != sunToolkitAWTLockMethod && null != sunToolkitAWTUnlockMethod) { try { - sunToolkitAWTLockMethod.invoke(null, null); - sunToolkitAWTUnlockMethod.invoke(null, null); + sunToolkitAWTLockMethod.invoke(null, (Object[])null); + sunToolkitAWTUnlockMethod.invoke(null, (Object[])null); _hasSunToolkitAWTLock = true; } catch (Exception e) { } @@ -160,7 +160,7 @@ public class JAWTUtil { boolean b = false; if(j2dExist) { try { - b = ((Boolean)isQueueFlusherThread.invoke(null, null)).booleanValue(); + b = ((Boolean)isQueueFlusherThread.invoke(null, (Object[])null)).booleanValue(); } catch (Exception e) {} } return b; @@ -179,7 +179,7 @@ public class JAWTUtil { public static void awtLock() { if(hasSunToolkitAWTLock) { try { - sunToolkitAWTLockMethod.invoke(null, null); + sunToolkitAWTLockMethod.invoke(null, (Object[])null); } catch (Exception e) { throw new NativeWindowException("SunToolkit.awtLock failed", e); } @@ -197,7 +197,7 @@ public class JAWTUtil { public static void awtUnlock() { if(hasSunToolkitAWTLock) { try { - sunToolkitAWTUnlockMethod.invoke(null, null); + sunToolkitAWTUnlockMethod.invoke(null, (Object[])null); } catch (Exception e) { throw new NativeWindowException("SunToolkit.awtUnlock failed", e); } diff --git a/src/nativewindow/classes/jogamp/nativewindow/jawt/windows/Win32SunJDKReflection.java b/src/nativewindow/classes/jogamp/nativewindow/jawt/windows/Win32SunJDKReflection.java index 1ff485290..5ad22807f 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/jawt/windows/Win32SunJDKReflection.java +++ b/src/nativewindow/classes/jogamp/nativewindow/jawt/windows/Win32SunJDKReflection.java @@ -109,7 +109,7 @@ public class Win32SunJDKReflection { } try { - return ((Integer) win32GraphicsConfigGetVisualMethod.invoke(config, null)).intValue(); + return ((Integer) win32GraphicsConfigGetVisualMethod.invoke(config, (Object[])null)).intValue(); } catch (Exception e) { return 0; } diff --git a/src/nativewindow/classes/jogamp/nativewindow/jawt/x11/X11SunJDKReflection.java b/src/nativewindow/classes/jogamp/nativewindow/jawt/x11/X11SunJDKReflection.java index b28874ef1..b576b0c6b 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/jawt/x11/X11SunJDKReflection.java +++ b/src/nativewindow/classes/jogamp/nativewindow/jawt/x11/X11SunJDKReflection.java @@ -87,7 +87,7 @@ public class X11SunJDKReflection { } try { - return ((Long) x11GraphicsDeviceGetDisplayMethod.invoke(device, null)).longValue(); + return ((Long) x11GraphicsDeviceGetDisplayMethod.invoke(device, (Object[])null)).longValue(); } catch (Exception e) { return 0; } @@ -110,7 +110,7 @@ public class X11SunJDKReflection { } try { - return ((Integer) x11GraphicsConfigGetVisualMethod.invoke(config, null)).intValue(); + return ((Integer) x11GraphicsConfigGetVisualMethod.invoke(config, (Object[])null)).intValue(); } catch (Exception e) { return 0; } |