diff src/hotspot/share/classfile/verificationType.cpp @ 51997:9ce37fa2e179

8209138: Symbol constructor uses u1 as the element type of its name argument Summary: Maske u1 the type for Symbol values and add a function to return it as a char. Reviewed-by: dholmes, coleenp
author hseigel
date Wed, 03 Oct 2018 09:46:46 -0400
parents 0a8a11767c3d
children 2e72562697bf
line wrap: on
line diff
--- a/src/hotspot/share/classfile/verificationType.cpp	Wed Oct 03 03:41:57 2018 -0400
+++ b/src/hotspot/share/classfile/verificationType.cpp	Wed Oct 03 09:46:46 2018 -0400
@@ -120,7 +120,7 @@
 VerificationType VerificationType::get_component(ClassVerifier *context, TRAPS) const {
   assert(is_array() && name()->utf8_length() >= 2, "Must be a valid array");
   Symbol* component;
-  switch (name()->byte_at(1)) {
+  switch (name()->char_at(1)) {
     case 'Z': return VerificationType(Boolean);
     case 'B': return VerificationType(Byte);
     case 'C': return VerificationType(Char);