Bug #2649
closed![Author: Omar Rodriguez](https://www.gravatar.com/avatar/4586e5cdc2a45b120956aeebc6fc809e?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: O'Neil Delpratt](https://www.gravatar.com/avatar/a0bc1766b412d8fecb16f7d304916359?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
Compilation with DEBUG defined
100%
Description
When the DEBUG flag is defined the following compilation error is produced...
../../Saxon.C.API/SaxonCProcessor.c: In function 'xsltApplyStylesheet':
../../Saxon.C.API/SaxonCProcessor.c:146:37: error: invalid type argument of '->' (have 'sxnc_environment')
../../Saxon.C.API/SaxonCProcessor.c:147:9: error: invalid type argument of '->' (have 'sxnc_environment')
../../Saxon.C.API/SaxonCProcessor.c: In function 'xsltApplyStylesheet':
../../Saxon.C.API/SaxonCProcessor.c:146:37: error: invalid type argument of '->' (have 'sxnc_environment')
../../Saxon.C.API/SaxonCProcessor.c:147:9: error: invalid type argument of '->' (have 'sxnc_environment')
../../Saxon.C.API/SaxonCProcessor.c: In function 'xsltApplyStylesheet':
../../Saxon.C.API/SaxonCProcessor.c:146:37: error: invalid type argument of '->' (have 'sxnc_environment')
../../Saxon.C.API/SaxonCProcessor.c:147:9: error: invalid type argument of '->' (have 'sxnc_environment')
Lines referenced are:
#ifdef DEBUG
jmethodID debugMID = environ->env->GetStaticMethodID(environ.env, cppClass, "setDebugMode", "(Z)V");
environ->env->CallStaticVoidMethod(environ.env, cppClass, debugMID, (jboolean)true);
#endif
In order to make these lines to compile I changed the code to....
#ifdef DEBUG
jmethodID debugMID = (*(environ.env))->GetStaticMethodID(environ.env, cppClass, "setDebugMode", "(Z)V");
(*(environ.env))->CallStaticVoidMethod(environ.env, cppClass, debugMID, (jboolean)true);
#endif
Please register to edit this issue