mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8335060: ClassCastException after JDK-8294960
Reviewed-by: liach, jpai
This commit is contained in:
parent
747e1e47f5
commit
3ca2bcd402
2 changed files with 806 additions and 8 deletions
|
@ -69,14 +69,14 @@ class TypeConvertingMethodAdapter {
|
|||
}
|
||||
|
||||
private static TypeKind primitiveTypeKindFromClass(Class<?> type) {
|
||||
if (type == int.class) return TypeKind.IntType;
|
||||
if (type == long.class) return TypeKind.LongType;
|
||||
if (type == boolean.class) return TypeKind.BooleanType;
|
||||
if (type == short.class) return TypeKind.ShortType;
|
||||
if (type == byte.class) return TypeKind.ByteType;
|
||||
if (type == char.class) return TypeKind.CharType;
|
||||
if (type == float.class) return TypeKind.FloatType;
|
||||
if (type == double.class) return TypeKind.DoubleType;
|
||||
if (type == Integer.class) return TypeKind.IntType;
|
||||
if (type == Long.class) return TypeKind.LongType;
|
||||
if (type == Boolean.class) return TypeKind.BooleanType;
|
||||
if (type == Short.class) return TypeKind.ShortType;
|
||||
if (type == Byte.class) return TypeKind.ByteType;
|
||||
if (type == Character.class) return TypeKind.CharType;
|
||||
if (type == Float.class) return TypeKind.FloatType;
|
||||
if (type == Double.class) return TypeKind.DoubleType;
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue