cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CAY-2370) ValueObjectType for byte[] fails lookup
Date Tue, 10 Oct 2017 09:42:00 GMT


ASF GitHub Bot commented on CAY-2370:

GitHub user aarrsseni opened a pull request:

    CAY-2370 ValueObjectType for byte[] fails lookup


You can merge this pull request into a Git repository by running:

    $ git pull CAY-2370

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #245
commit d226eeeb390d840fa53cbde79f24910bed1518e2
Author: Arseni Bulatski <>
Date:   2017-10-10T09:40:26Z

    CAY-2370 ValueObjectType for byte[] fails lookup


> ValueObjectType for byte[] fails lookup
> ---------------------------------------
>                 Key: CAY-2370
>                 URL:
>             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.M1
> 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

View raw message