From 6965dab3c7103087206f17334678d1b2cd0764a9 Mon Sep 17 00:00:00 2001 From: Lukas Jungmann Date: Thu, 9 Jun 2022 19:04:54 +0200 Subject: [PATCH] #596: impossible cast in spi/db/TypeInfo.java Signed-off-by: Lukas Jungmann (cherry picked from commit 331b805c4e3122288b1125e0ea83acd02f38c239) --- .../rt/src/main/java/com/sun/xml/ws/spi/db/TypeInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jaxws-ri/runtime/rt/src/main/java/com/sun/xml/ws/spi/db/TypeInfo.java b/jaxws-ri/runtime/rt/src/main/java/com/sun/xml/ws/spi/db/TypeInfo.java index 941910b51..1a26a2111 100644 --- a/jaxws-ri/runtime/rt/src/main/java/com/sun/xml/ws/spi/db/TypeInfo.java +++ b/jaxws-ri/runtime/rt/src/main/java/com/sun/xml/ws/spi/db/TypeInfo.java @@ -162,7 +162,7 @@ public TypeInfo getItemType() { Type componentType = ((Class)type).getComponentType(); Type genericComponentType = null; if (genericType!= null && genericType instanceof GenericArrayType) { - GenericArrayType arrayType = (GenericArrayType) type; + GenericArrayType arrayType = (GenericArrayType) genericType; genericComponentType = arrayType.getGenericComponentType(); componentType = arrayType.getGenericComponentType(); }