Skip to content

TimerManagerTaskScheduler.TimerScheduledFuture.getDelay is inverted [SPR-13977] #18549

@spring-projects-issues

Description

@spring-projects-issues

Tobias Gruetzmacher opened SPR-13977 and commented

The implementation of getDelay in TimerScheduledFuture in org.springframework.scheduling.commonj.TimerManagerTaskScheduler is inverted: It return negative values when the timer hasn't elapsed and positive values if it has. This violates the contract of the Delayed interface...


Affects: 3.2.16, 4.2.4

Reference URL: https://github.com/spring-projects/spring-framework/blob/master/spring-context-support/src/main/java/org/springframework/scheduling/commonj/TimerManagerTaskScheduler.java#L136

Backported to: 3.2.17

Metadata

Metadata

Assignees

Labels

status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions