mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 14:11:36 +00:00
8288485: jni/nullCaller/NullCallerTest.java failing (ppc64)
Reviewed-by: alanb
This commit is contained in:
parent
ed714af854
commit
09da87cf5c
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user