Skip to content

undocumented: @DnAttribute demands String type #499

Closed
@edysli

Description

@edysli

While trying to annotate a field of type java.time.Instant with @DnAttribute, I got the following exception in my tests:

org.springframework.ldap.odm.core.impl.InvalidEntryException: Can't get Id field from Entry [...]

Caused by: org.springframework.ldap.odm.core.impl.MetaDataException: private java.time.Instant expiredTimestamp is of type class java.time.Instant, but only String attributes can be declared as @DnAttributes

Note that I do have Converters registered to convert between Instant and String, both ways.

If @DnAttribute is really that much type-intolerant, this must be mentioned in its Javadoc and in the reference documentation.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions