Re: JOGL incompatible with SWT 4.21
Posted by Martin on Dec 16, 2022; 3:34pm
URL: https://forum.jogamp.org/JOGL-incompatible-with-SWT-4-21-tp4041643p4041979.html
Hi Alexis,
I red this message again today and found that it is a very good idea to "override" classes in JOGL that have a static initializer.
I did something similar while debugging something in JAWTUtil class. Simply copy pasting JAWTUtil in the project from which the main program is ran ensures my JAWTUtil copy get loaded first, which then prevent JOGL from loading the original JAWTUtil.
Do you think this kind of hack could be reliable? Are there scenarios where class loading could happen differently and this trick fail? I am mainly thinking of cases where class loading happens differently on the customer computer :)