8288485: jni/nullCaller/NullCallerTest.java failing (ppc64)

Reviewed-by: alanb
This commit is contained in:
Martin Doerr 2022-06-20 08:34:06 +00:00
parent ed714af854
commit 09da87cf5c

View File

@ -24,12 +24,12 @@
#define __CallHelper_hpp__
#include <stdlib.h>
#include <stdio.h>
#include <jni.h>
#undef NDEBUG
#include <assert.h>
#include <string>
#include <algorithm>
#include <iostream>
/*
* basis of classes to provide a bunch of checking in native calls to java
@ -48,7 +48,7 @@ protected:
void emitErrorMessage(const std::string& msg) {
std::string nm = classname;
std::replace(nm.begin(), nm.end(), '/', '.');
std::cerr << "ERROR: " << nm << "::" << method << ", " << msg << std::endl;
::fprintf(stderr, "ERROR: %s::%s, %s\n", nm.c_str(), method.c_str(), msg.c_str());
}
// check the given object which is expected to be null
@ -202,7 +202,7 @@ public:
};
void emitErrorMessageAndExit(const std::string& msg) {
std::cerr << "ERROR: " << msg << std::endl;
::fprintf(stderr, "ERROR: %s\n", msg.c_str());
::exit(-1);
}