Skip to content

Update.inc(String, Number) method fails to work with AtomicInteger [DATAMONGO-1288] #2205

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
spring-projects-issues opened this issue Sep 16, 2015 · 0 comments
Assignees
Labels
in: core Issues in core support type: bug A general bug

Comments

@spring-projects-issues
Copy link

John K. Watson opened DATAMONGO-1288 and commented

Even though the org.springframework.data.mongodb.core.query.Update.inc(String, Number) method takes the parameter as Number, it doesn't actually work right with things that aren't simple primitive object wrappers. For example, if you pass in an AtomicInteger, the update fails to execute, as the generated json isn't correct


Affects: 1.7.2 (Fowler SR2)

Issue Links:

  • DATAMONGO-1302 CustomConversions should allow registration of ConverterFactory
    ("depends on")
  • SPR-13938 NumberToNumberConverterFactory should allow usage of AtomicInteger and AtomicLong as source

Referenced from: pull request #331, and commits ad0c420, 059de55, 0f14e35, f54351d, 06e985e, 576a086

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core support type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants