Skip to content
Permalink
Browse files
Send elements of Serializable[] as Anys
This conforms to the Java2IDL spec, 4.3.10.1
  • Loading branch information
ngmr committed Mar 31, 2015
1 parent a0f6f6b commit 3f2ecf9360c4d9f314c460fff6be644b0ae4f9e4
Showing 1 changed file with 4 additions and 4 deletions.
@@ -158,16 +158,16 @@ static ArrayDescriptor get(final Class type, TypeRepository rep) {
throw new RuntimeException("unknown array type " + type);
}
}
if (java.io.Serializable.class.equals(elemType) ||
java.io.Externalizable.class.equals(elemType) || Object.class.equals(elemType)) {
return new ObjectArrayDescriptor(type, elemType, rep);

if (java.io.Serializable.class.isAssignableFrom(elemType)) {
} else if (java.io.Serializable.class.isAssignableFrom(elemType)) {
return new ValueArrayDescriptor(type, elemType, rep);

} else if (java.rmi.Remote.class.isAssignableFrom(elemType)) {
return new RemoteArrayDescriptor(type, elemType, rep);

} else if (Object.class.equals(elemType)) {
return new ObjectArrayDescriptor(type, elemType, rep);

} else {
return new AbstractObjectArrayDescriptor(type, elemType, rep);
}

0 comments on commit 3f2ecf9

Please sign in to comment.