Skip to content

Commit a12a62f

Browse files
ScheduledTasks Casting Error (#592)
BoxLang requires the value passed into java.util.concurrent.TimeUnit to be casted to long to avoid error. COLDBOX-1282
1 parent b11e27f commit a12a62f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/async/tasks/ScheduledTask.cfc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ component accessors="true" {
15311531
// Set the period to be every hour in seconds
15321532
variables.period = variables.timeUnitHelper
15331533
.get( arguments.periodValue )
1534-
.toSeconds( arguments.periodMultiplier );
1534+
.toSeconds( javacast( "long", arguments.periodMultiplier ) );
15351535
variables.timeUnit = "seconds";
15361536
}
15371537

0 commit comments

Comments
 (0)