src/share/vm/compiler/directivesParser.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8138651 Cdiff src/share/vm/compiler/directivesParser.cpp

src/share/vm/compiler/directivesParser.cpp

Print this page

        

*** 286,296 **** (set->*test)((void *)&dval); } break; case JSON_STRING: ! if (option_key->flag_type != ccstrFlag) { error(VALUE_ERROR, "Cannot use string value for a %s flag", flag_type_names[option_key->flag_type]); return false; } else { char* s = NEW_C_HEAP_ARRAY(char, v->str.length+1, mtCompiler); strncpy(s, v->str.start, v->str.length + 1); --- 286,296 ---- (set->*test)((void *)&dval); } break; case JSON_STRING: ! if (option_key->flag_type != ccstrFlag && option_key->flag_type != ccstrlistFlag) { error(VALUE_ERROR, "Cannot use string value for a %s flag", flag_type_names[option_key->flag_type]); return false; } else { char* s = NEW_C_HEAP_ARRAY(char, v->str.length+1, mtCompiler); strncpy(s, v->str.start, v->str.length + 1);
src/share/vm/compiler/directivesParser.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File