Re: [java-gnome-hackers] GApplication and GtkApplication coverage
Brought to you by:
afcowie
From: Guillaume M. <res...@gm...> - 2012-01-13 23:15:11
|
I forgot to include a short example in my previous mail. After compiling my code here is what I did: javap -classpath .:gtk-4.1.jar -s org.gnome.glib.GApplication This gave me the signature for every methods of the GApplication class. The interesting one is: protected static final void receiveOpen(org.gnome.glib.Signa, long, long[], java.lang.String); Signature: (Lorg/gnome/glib/Signal;J[JLjava/lang/String;)V But when I start my test program and after decommenting the lines 555 and 556 of the "bindings_java_signal.c" file I can see that the signature that is being used to find the "receiveOpen" method is: (Lorg/gnome/glib/Signal;JJILjava/lang/String;)V So the "bindings_java_typeToSignature" function is considering "[J" (the array of GFile) as "JI". -- Guillaume Mazoyer |