You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (JIRA)" <ji...@apache.org> on 2017/11/14 07:25:01 UTC
[jira] [Closed] (CAY-2370) ValueObjectType for byte[] fails lookup
[ https://issues.apache.org/jira/browse/CAY-2370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikita Timofeev closed CAY-2370.
--------------------------------
Resolution: Fixed
> 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
> Labels: pull-request-available
> Fix For: 4.0.B3, 4.1.M2
>
>
> 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)