diff -r 84743156e780 -r 9ce37fa2e179 src/hotspot/share/classfile/systemDictionary.cpp --- a/src/hotspot/share/classfile/systemDictionary.cpp Wed Oct 03 03:41:57 2018 -0400 +++ b/src/hotspot/share/classfile/systemDictionary.cpp Wed Oct 03 09:46:46 2018 -0400 @@ -2601,7 +2601,7 @@ if (type->utf8_length() == 1) { // It's a primitive. (Void has a primitive mirror too.) - char ch = (char) type->byte_at(0); + char ch = type->char_at(0); assert(is_java_primitive(char2type(ch)) || ch == 'V', ""); return Handle(THREAD, find_java_mirror_for_type(ch));