< prev index next >
src/hotspot/share/jvmci/jvmciEnv.cpp
Print this page
rev 55090 : secret-sfac
@@ -118,12 +118,12 @@
Symbol* sym,
bool require_local) {
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,
sym->utf8_length()-2,
CHECK_NULL);
< prev index next >