--- a/test/hotspot/jtreg/vmTestbase/nsk/share/jni/ExceptionCheckingJniEnv.cpp Thu Apr 25 02:23:27 2019 +0200
+++ b/test/hotspot/jtreg/vmTestbase/nsk/share/jni/ExceptionCheckingJniEnv.cpp Wed Apr 24 19:51:38 2019 -0700
@@ -180,7 +180,8 @@
strcat(full_message, strs[i]);
}
- DecimalToAscii(full_message, _line);
+ // Add line number to end of the string.
+ DecimalToAscii(full_message + strlen(full_message), _line);
if (strlen(full_message) >= len) {
_env->GetJNIEnv()->FatalError("Final length of message is not what was expected");