< prev index next >

src/hotspot/share/classfile/classFileParser.cpp

Print this page
rev 54257 : [mq]: 8221408-win32-hotspot-buildfixes

@@ -310,11 +310,11 @@
                              index,
                              CHECK);
           const char* const str = java_lang_String::as_utf8_string(patch());
           // (could use java_lang_String::as_symbol instead, but might as well batch them)
           utf8_buffer = (const u1*) str;
-          utf8_length = (int) strlen(str);
+          utf8_length = (u2) strlen(str);
         }
 
         unsigned int hash;
         Symbol* const result = SymbolTable::lookup_only((const char*)utf8_buffer,
                                                         utf8_length,
< prev index next >