[jboss-jira] [JBoss JIRA] (AS7-3630) Method createTimer(Date date, Serializable info) creates timer which is invoked even the date is in past

jaikiran pai (JIRA) jira-events at lists.jboss.org
Wed Feb 8 01:36:49 EST 2012


    [ https://issues.jboss.org/browse/AS7-3630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664956#comment-12664956 ] 

jaikiran pai commented on AS7-3630:
-----------------------------------

For what it's worth, this behaviour is similar to what http://docs.oracle.com/javase/6/docs/api/java/util/Timer.html#schedule%28java.util.TimerTask,%20java.util.Date%29 does when the date is in the past:
{quote}
public void schedule(TimerTask task,
                     Date time)

    Schedules the specified task for execution at the specified time. If the time is in the past, the task is scheduled for immediate execution. 
{quote}

So it's consistent with how the Java timer behaves.

                
> Method createTimer(Date date, Serializable info) creates timer which is invoked even the date is in past
> --------------------------------------------------------------------------------------------------------
>
>                 Key: AS7-3630
>                 URL: https://issues.jboss.org/browse/AS7-3630
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: EJB
>    Affects Versions: 7.1.0.CR1b
>            Reporter: Ondřej Chaloupka
>            Assignee: Stuart Douglas
>            Priority: Minor
>
> In case that I used constructor createTimer(Date date, Serializable info) I set a date which time was in past the timer was created and timeout method was invoked. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jboss-jira mailing list