Skip to content

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

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Labels

in: coreIssues in core supporttype: bugA general bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions