CORDA-2674 observe the true type of an atomic type

This commit is contained in:
Dominic Fox 2019-02-26 17:48:43 +00:00 committed by Mike Hearn
parent f52d158f2d
commit 74c5b8d127

View File

@ -104,7 +104,7 @@ internal data class LocalTypeInformationBuilder(val lookup: LocalTypeLookup,
!EnumSet::class.java.isAssignableFrom(type) -> LocalTypeInformation.ACollection(type, typeIdentifier, LocalTypeInformation.Unknown)
Map::class.java.isAssignableFrom(type) -> LocalTypeInformation.AMap(type, typeIdentifier, LocalTypeInformation.Unknown, LocalTypeInformation.Unknown)
type == String::class.java -> LocalTypeInformation.Atomic(String::class.java, typeIdentifier)
type.kotlin.javaPrimitiveType != null ->LocalTypeInformation.Atomic(type.kotlin.javaPrimitiveType!!, typeIdentifier)
type.kotlin.javaPrimitiveType != null ->LocalTypeInformation.Atomic(type, typeIdentifier)
type.isEnum -> LocalTypeInformation.AnEnum(
type,
typeIdentifier,