mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8209138: Symbol constructor uses u1 as the element type of its name argument
Maske u1 the type for Symbol values and add a function to return it as a char. Reviewed-by: dholmes, coleenp
This commit is contained in:
parent
a3cd6a1a70
commit
221005a3d4
28 changed files with 120 additions and 116 deletions
|
@ -2601,7 +2601,7 @@ Handle SystemDictionary::find_java_mirror_for_type(Symbol* signature,
|
|||
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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue