Skip to content

undocumented: @DnAttribute demands String type #499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
edysli opened this issue Jan 25, 2019 · 0 comments
Closed

undocumented: @DnAttribute demands String type #499

edysli opened this issue Jan 25, 2019 · 0 comments
Assignees
Labels
in: docs An issue in Documentation or samples type: enhancement
Milestone

Comments

@edysli
Copy link
Contributor

edysli commented Jan 25, 2019

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.

@rwinch rwinch self-assigned this Jan 25, 2019
@rwinch rwinch added type: enhancement in: docs An issue in Documentation or samples labels Jan 25, 2019
@rwinch rwinch added this to the 2.3.3 milestone Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: docs An issue in Documentation or samples type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants