< prev index next >

src/hotspot/share/ci/ciEnv.cpp

Print this page
rev 55090 : secret-sfac

@@ -398,12 +398,12 @@
   ASSERT_IN_VM;
   EXCEPTION_CONTEXT;
 
   // Now we need to check the SystemDictionary
   Symbol* sym = name->get_symbol();
-  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,
                     KILL_COMPILE_ON_FATAL_(_unloaded_ciinstance_klass));
< prev index next >