Posted by
jerron on
Jun 26, 2010; 7:54am
URL: https://forum.jogamp.org/Missing-ReflectionUtil-methods-tp923893.html
Hi.
I've forked jogl and made the changes necessary to get it building on FreeBSD:
http://github.com/rothwell/jogl/tree/freebsd-fixesBut I've come up against a problem:
java.compile.javase:
[javac] Compiling 69 source files to /storage/home/m0/git-ext/jogamp-rothwell/jogl/build/nativewindow/classes
[javac] /storage/home/m0/git-ext/jogamp-rothwell/jogl/src/nativewindow/classes/javax/media/nativewindow/GraphicsCon
[javac] ReflectionUtil.createInstance("com.jogamp.nativewindow.impl.x11.X11GraphicsConfiguratio
[javac] ^
[javac] symbol: method createInstance(String,ClassLoader,Object[])
[javac] location: class ReflectionUtil
[javac] /storage/home/m0/git-ext/jogamp-rothwell/jogl/src/nativewindow/classes/javax/media/nativewindow/NativeWindo
[javac] ReflectionUtil.callStaticMethod( X11UtilClassName, cl, "initSingleton", new Class[] { }, new O
[javac] ^
[javac] required: String,String,Class[],Object[]
[javac] found: String,ClassLoader,String,Class[],Object[]
[javac] /storage/home/m0/git-ext/jogamp-rothwell/jogl/src/nativewindow/classes/javax/media/nativewindow/NativeWindo
[javac] ReflectionUtil.isClassAvailable(AWTComponentClassName, cl) &&
[javac] ^
[javac] required: String
[javac] found: String,ClassLoader
[javac] /storage/home/m0/git-ext/jogamp-rothwell/jogl/src/nativewindow/classes/javax/media/nativewindow/NativeWindo
[javac] ReflectionUtil.isClassAvailable("javax.media.nativewindow.awt.AWTGraphicsDevice",
[javac] ^
[javac] required: String
[javac] found: String,ClassLoader
[javac] /storage/home/m0/git-ext/jogamp-rothwell/jogl/src/nativewindow/classes/javax/media/nativewindow/NativeWindo
[javac] registerFactory(ReflectionUtil.getClass(AWTComponentClassName, false, cl), factory);
[javac] ^
[javac] symbol: method getClass(String,boolean,ClassLoader)
[javac] location: class ReflectionUtil
[javac] /storage/home/m0/git-ext/jogamp-rothwell/jogl/src/nativewindow/classes/com/jogamp/nativewindow/impl/NativeW
[javac] nativeWindowConstructor = ReflectionUtil.getConstructor(windowClassName, getClass().getClas
[javac] ^
[javac] symbol: method getConstructor(String,ClassLoader,Class[])
[javac] location: class ReflectionUtil
[javac] 6 errors
The types of some of the methods seem wrong: The only 'createInstance' I can find in jogl is in
gluegen and has the type:
public static final Object createInstance(Class clazz, Class[] cstrArgTypes, Object[] cstrArgs)
Obviously the code above is trying to call one of the type:
createInstance(String,ClassLoader,Object[])
Is something out of sync with the repos? Or is this a known problem/work in progress?