You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Anton Luht (JIRA)" <ji...@apache.org> on 2006/10/03 18:01:19 UTC

[jira] Created: (HARMONY-1679) Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task

Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task
------------------------------------------------------------------------------------

                 Key: HARMONY-1679
                 URL: http://issues.apache.org/jira/browse/HARMONY-1679
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Windows XP ia32
            Reporter: Anton Luht
            Priority: Minor


This bug was found during investigation of unit test  tests.api.java.util.TimerTaskTest

Build: svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build

Code to reproduce:

import java.util.Timer;
import java.util.TimerTask;

public class Test {
	public static void main(String args[]) {
		new Timer().schedule(new TimerTestTask(), 50, 50);
	}

}

class TimerTestTask extends TimerTask {
	public void run() {
		System.err.println("running...");
	}
}


Output in RI:
running...
running...
running...
running...
... (infinite)...

Output in Harmony: 
running...
(and no more output)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1679) Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task

Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1679?page=comments#action_12443762 ] 
            
Elena Semukhina commented on HARMONY-1679:
------------------------------------------

Could not reproduce on drlvm r. 465143.


> Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1679
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1679
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows XP ia32
>            Reporter: Anton Luht
>            Priority: Minor
>
> This bug was found during investigation of unit test  tests.api.java.util.TimerTaskTest
> Build: svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> Code to reproduce:
> import java.util.Timer;
> import java.util.TimerTask;
> public class Test {
> 	public static void main(String args[]) {
> 		new Timer().schedule(new TimerTestTask(), 50, 50);
> 	}
> }
> class TimerTestTask extends TimerTask {
> 	public void run() {
> 		System.err.println("running...");
> 	}
> }
> Output in RI:
> running...
> running...
> running...
> running...
> ... (infinite)...
> Output in Harmony: 
> running...
> (and no more output)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1679) Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task

Posted by "Anton Luht (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1679?page=comments#action_12440118 ] 
            
Anton Luht commented on HARMONY-1679:
-------------------------------------

see HARMONY-1722 for the minimal test case

> Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1679
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1679
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows XP ia32
>            Reporter: Anton Luht
>            Priority: Minor
>
> This bug was found during investigation of unit test  tests.api.java.util.TimerTaskTest
> Build: svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> Code to reproduce:
> import java.util.Timer;
> import java.util.TimerTask;
> public class Test {
> 	public static void main(String args[]) {
> 		new Timer().schedule(new TimerTestTask(), 50, 50);
> 	}
> }
> class TimerTestTask extends TimerTask {
> 	public void run() {
> 		System.err.println("running...");
> 	}
> }
> Output in RI:
> running...
> running...
> running...
> running...
> ... (infinite)...
> Output in Harmony: 
> running...
> (and no more output)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1679) Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task

Posted by "Anton Luht (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1679?page=comments#action_12447322 ] 
            
Anton Luht commented on HARMONY-1679:
-------------------------------------

verified on 

svn = r471521, (Nov  5 2006), Windows/ia32/msvc 1310, debug build

> Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1679
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1679
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows XP ia32
>            Reporter: Anton Luht
>            Priority: Minor
>
> This bug was found during investigation of unit test  tests.api.java.util.TimerTaskTest
> Build: svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> Code to reproduce:
> import java.util.Timer;
> import java.util.TimerTask;
> public class Test {
> 	public static void main(String args[]) {
> 		new Timer().schedule(new TimerTestTask(), 50, 50);
> 	}
> }
> class TimerTestTask extends TimerTask {
> 	public void run() {
> 		System.err.println("running...");
> 	}
> }
> Output in RI:
> running...
> running...
> running...
> running...
> ... (infinite)...
> Output in Harmony: 
> running...
> (and no more output)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1679) Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task

Posted by "Alexei Fedotov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1679?page=comments#action_12447279 ] 
            
Alexei Fedotov commented on HARMONY-1679:
-----------------------------------------

I have modified test a bit so it becomes possible to run it in a loop. All worked fine - please close the bug as not reproducible.

> Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1679
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1679
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows XP ia32
>            Reporter: Anton Luht
>            Priority: Minor
>
> This bug was found during investigation of unit test  tests.api.java.util.TimerTaskTest
> Build: svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> Code to reproduce:
> import java.util.Timer;
> import java.util.TimerTask;
> public class Test {
> 	public static void main(String args[]) {
> 		new Timer().schedule(new TimerTestTask(), 50, 50);
> 	}
> }
> class TimerTestTask extends TimerTask {
> 	public void run() {
> 		System.err.println("running...");
> 	}
> }
> Output in RI:
> running...
> running...
> running...
> running...
> ... (infinite)...
> Output in Harmony: 
> running...
> (and no more output)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (HARMONY-1679) Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1679?page=all ]

Alexey Petrenko closed HARMONY-1679.
------------------------------------

    Resolution: Cannot Reproduce
      Assignee: Alexey Petrenko

Reporter verified that this issue is not reproducible any more.

> Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1679
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1679
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows XP ia32
>            Reporter: Anton Luht
>         Assigned To: Alexey Petrenko
>            Priority: Minor
>
> This bug was found during investigation of unit test  tests.api.java.util.TimerTaskTest
> Build: svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> Code to reproduce:
> import java.util.Timer;
> import java.util.TimerTask;
> public class Test {
> 	public static void main(String args[]) {
> 		new Timer().schedule(new TimerTestTask(), 50, 50);
> 	}
> }
> class TimerTestTask extends TimerTask {
> 	public void run() {
> 		System.err.println("running...");
> 	}
> }
> Output in RI:
> running...
> running...
> running...
> running...
> ... (infinite)...
> Output in Harmony: 
> running...
> (and no more output)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1679) Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task

Posted by "Alexei Fedotov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1679?page=comments#action_12440624 ] 
            
Alexei Fedotov commented on HARMONY-1679:
-----------------------------------------

[drlvm][unit] Blocks http://wiki.apache.org/harmony/Unit_Tests_Pass_on_DRLVM 



> Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1679
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1679
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows XP ia32
>            Reporter: Anton Luht
>            Priority: Minor
>
> This bug was found during investigation of unit test  tests.api.java.util.TimerTaskTest
> Build: svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> Code to reproduce:
> import java.util.Timer;
> import java.util.TimerTask;
> public class Test {
> 	public static void main(String args[]) {
> 		new Timer().schedule(new TimerTestTask(), 50, 50);
> 	}
> }
> class TimerTestTask extends TimerTask {
> 	public void run() {
> 		System.err.println("running...");
> 	}
> }
> Output in RI:
> running...
> running...
> running...
> running...
> ... (infinite)...
> Output in Harmony: 
> running...
> (and no more output)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1679) Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task

Posted by "Anton Luht (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1679?page=comments#action_12440110 ] 
            
Anton Luht commented on HARMONY-1679:
-------------------------------------

It's DRLVM bug - the problem is not reproduced on IBM VM

> Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1679
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1679
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows XP ia32
>            Reporter: Anton Luht
>            Priority: Minor
>
> This bug was found during investigation of unit test  tests.api.java.util.TimerTaskTest
> Build: svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> Code to reproduce:
> import java.util.Timer;
> import java.util.TimerTask;
> public class Test {
> 	public static void main(String args[]) {
> 		new Timer().schedule(new TimerTestTask(), 50, 50);
> 	}
> }
> class TimerTestTask extends TimerTask {
> 	public void run() {
> 		System.err.println("running...");
> 	}
> }
> Output in RI:
> running...
> running...
> running...
> running...
> ... (infinite)...
> Output in Harmony: 
> running...
> (and no more output)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira