comparison test/hotspot/jtreg/vmTestbase/nsk/jvmti/RedefineClasses/redefclass004/redefclass004.cpp @ 51870:cdfabab3413f

8210689: Remove the multi-line old C style for string literals Summary: Remove the multi-line old C style and prefer C++ multi-line Reviewed-by: amenkov, cjplummer
author jcbeyler
date Tue, 25 Sep 2018 09:34:51 -0700
parents 13a63d4a3f8d
children 9cfc8b0c45fd
comparison
equal deleted inserted replaced
1:93221d340d11 2:850e9e12fe2a
115 if (vrb == 1) 115 if (vrb == 1)
116 printf(">>>>>>>> Invoke RedefineClasses():\n\tnew class byte count=%d\n", 116 printf(">>>>>>>> Invoke RedefineClasses():\n\tnew class byte count=%d\n",
117 classDef.class_byte_count); 117 classDef.class_byte_count);
118 if ((err = (jvmti->RedefineClasses(1, &classDef))) != JVMTI_ERROR_NONE) { 118 if ((err = (jvmti->RedefineClasses(1, &classDef))) != JVMTI_ERROR_NONE) {
119 if (err == JVMTI_ERROR_UNSUPPORTED_REDEFINITION_SCHEMA_CHANGED) { 119 if (err == JVMTI_ERROR_UNSUPPORTED_REDEFINITION_SCHEMA_CHANGED) {
120 printf("Warning: unrestrictedly redefinition of classes is not implemented,\n\ 120 printf(
121 \tso the test has no results.\n"); 121 "Warning: unrestrictedly redefinition of classes is not implemented,\n"
122 "\tso the test has no results.\n");
122 no_results = 1; 123 no_results = 1;
123 } 124 }
124 else { 125 else {
125 printf("%s: Failed to call RedefineClasses():\n\tthe function returned error %d: %s\n", 126 printf("%s: Failed to call RedefineClasses():\n\tthe function returned error %d: %s\n",
126 __FILE__, err, TranslateError(err)); 127 __FILE__, err, TranslateError(err));
180 printf("\tstringComplNewFld = \"%s\",\texpected \"%s\"\n", 181 printf("\tstringComplNewFld = \"%s\",\texpected \"%s\"\n",
181 strFld, STRFLD); 182 strFld, STRFLD);
182 env->ReleaseStringUTFChars(stringObj, strFld); 183 env->ReleaseStringUTFChars(stringObj, strFld);
183 return STATUS_FAILED; 184 return STATUS_FAILED;
184 } else { 185 } else {
185 if (vrb == 1) 186 if (vrb == 1) {
186 printf("Completely new fields:\n\ 187 printf(
187 \tstringComplNewFld = \"%s\"\n\tintComplNewFld = %d\n\ 188 "Completely new fields:\n"
188 \tlongComplNewFld = %" LL "d\n", 189 "\tstringComplNewFld = \"%s\"\n"
190 "\tintComplNewFld = %d\n"
191 "\tlongComplNewFld = %" LL "d\n",
189 strFld, intFld, longFld); 192 strFld, intFld, longFld);
193 }
190 env->ReleaseStringUTFChars(stringObj, strFld); 194 env->ReleaseStringUTFChars(stringObj, strFld);
191 return PASSED; 195 return PASSED;
192 } 196 }
193 } 197 }
194 198