--- old/src/hotspot/share/jvmci/jvmciEnv.cpp 2019-04-24 13:36:12.000000000 -0700 +++ new/src/hotspot/share/jvmci/jvmciEnv.cpp 2019-04-24 13:36:11.000000000 -0700 @@ -120,8 +120,8 @@ JVMCI_EXCEPTION_CONTEXT; // Now we need to check the SystemDictionary - if ((sym->char_at(0) == 'L' || sym->char_at(0) == 'Q') && - sym->char_at(sym->utf8_length()-1) == ';') { + if ((sym->starts_with('L') || sym->starts_with('Q')) && + sym->ends_with(';')) { // This is a name from a signature. Strip off the trimmings. // Call recursive to keep scope of strippedsym. TempNewSymbol strippedsym = SymbolTable::new_symbol(sym->as_utf8()+1,