cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Timofeev (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CAY-2370) ValueObjectType for byte[] fails lookup
Date Mon, 09 Oct 2017 07:38:03 GMT

     [ https://issues.apache.org/jira/browse/CAY-2370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nikita Timofeev reassigned CAY-2370:
------------------------------------

    Assignee: Nikita Timofeev

> ValueObjectType for byte[] fails lookup
> ---------------------------------------
>
>                 Key: CAY-2370
>                 URL: https://issues.apache.org/jira/browse/CAY-2370
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 4.0.B2
>            Reporter: Dirk Lattermann
>            Assignee: Nikita Timofeev
>
> Trying to register a ValueObjectType<UUID, byte[]> using
>           .addModule(binder -> ServerModule.contributeValueObjectTypes(binder)
>               .add(H2UUIDValueObjectType.class))
> does not work, because in ValueObjectTypeFactory, method getType(Class<?>), the
lookup map.getExplicitlyRegisteredType() returns null. This is because a key of "byte[]" is
present in the typeMap of the ExtendedTypeMap, but the lookup is done with the className,
which is "[B".



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message