Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
8288485: jni/nullCaller/NullCallerTest.java failing (ppc64)
Reviewed-by: alanb
  • Loading branch information
TheRealMDoerr committed Jun 20, 2022
1 parent ed714af commit 09da87c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/jdk/jni/nullCaller/CallHelper.hpp
Expand Up @@ -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
Expand All @@ -48,7 +48,7 @@ class CallHelper {
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
Expand Down Expand Up @@ -202,7 +202,7 @@ class StaticCall : public CallHelper {
};

void emitErrorMessageAndExit(const std::string& msg) {
std::cerr << "ERROR: " << msg << std::endl;
::fprintf(stderr, "ERROR: %s\n", msg.c_str());
::exit(-1);
}

Expand Down

1 comment on commit 09da87c

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.