Project

Profile

Help

Revision 306962bc

Added by O'Neil Delpratt 5 months ago

Saxon/C development - Added multi-threading test case and other bug fixes

View differences:

src/main/c/Saxon.C.API/Xslt30Processor.cpp
187 187

  
188 188
void Xslt30Processor::createException(const char * message) {
189 189

  
190

  
190 191
    if(exception != nullptr) {
191 192
        delete exception;
192 193
        SaxonProcessor::sxn_environ->env->ExceptionClear();
193 194
    }
195

  
194 196
    if(message == nullptr) {
195 197
        exception = proc->checkAndCreateException(cppClass);
196 198
    } else {
......
210 212
					"(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;)V");
211 213
	}
212 214
	if (!cAndSNodemID) {
213
		std::cerr<<"Error: "<<getDllname()<<"compileFromStringAndSave funtion not found"<<std::endl;
215
		std::cerr<<"Error: "<<getDllname()<<"compileFromStringAndSave function not found"<<std::endl;
214 216
        SaxonProcessor::sxn_environ->env->ExceptionClear();
215 217
	} else {
216 218
        if(cppXT == nullptr) {
......
514 516
	} else {
515 517
        if(cppXT == nullptr) {
516 518
//#if defined(DEBUG)
517
            std::cerr << "The Java Xslt30Processor object (i.e. cppXT) is NULL - Possible exception thrown" << std::endl;
519
            createException("The Java Xslt30Processor object (i.e. cppXT) is NULL - Possible exception thrown");
518 520
//#endif
519 521
            return nullptr;
520 522
        }

Also available in: Unified diff