Project

Profile

Help

Bug #2649

Compilation with DEBUG defined

Added by Omar Rodriguez about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Category:
C API
Start date:
2016-02-25
Due date:
% Done:

100%

Found in version:
1.0.0
Fixed in version:
1.0.1

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 = ()->GetStaticMethodID(environ.env, cppClass, "setDebugMode", "(Z)V");
(
(environ.env))->CallStaticVoidMethod(environ.env, cppClass, debugMID, (jboolean)true);
#endif

History

#1 Updated by O'Neil Delpratt about 2 years ago

  • Category set to C API
  • Assignee set to O'Neil Delpratt
  • Fixed in version set to 1.0.0

#2 Updated by O'Neil Delpratt about 2 years ago

  • Status changed from New to In Progress

Thanks for letting us know about this build error. We will investigate it and report back shortly.

You should be fine to compile Saxon/C without using the DEBUG flag.

#3 Updated by O'Neil Delpratt about 2 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
  • Found in version set to 1.0.0
  • Fixed in version deleted (1.0.0)

Bug has been fixed and committed to subversion

#4 Updated by O'Neil Delpratt about 2 years ago

  • Status changed from Resolved to Closed
  • Fixed in version set to 1.0.1

Bug fix applied in the Saxon/C 1.0.1 maintenance release.

Please register to edit this issue

Also available in: Atom PDF