[java-gnome-hackers] Problem with static globals
Brought to you by:
afcowie
From: Serkan K. <se...@ge...> - 2010-09-21 02:30:45
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 After writing excessive ugly code for GInfo and GInfo[] creation, I just had the idea of caching needed jclass and jmethodID instances in a global array, but unfortunately I couldn't make it work. After applying the attached patch, generator halts with ERROR:src/generator/util.c:83:create_java_ginfo: assertion failed: (classes[type] != NULL) I guess, I'm doing something terribly wrong. Can you help? - -- Sincerely, Serkan KABA -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyYGMgACgkQRh6X64ivZaJOhACbBeINh89Kek6DO3GrBzf888s+ dNUAn03ws7AEyLQsJhrH7EJssM0TADt7 =9cKL -----END PGP SIGNATURE----- |