public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libgcj/4859: java.util.Timer class throw IllegalStateException on cancel()
@ 2001-11-02  7:54 tromey
  0 siblings, 0 replies; 3+ messages in thread
From: tromey @ 2001-11-02  7:54 UTC (permalink / raw)
  To: tromey; +Cc: gcc-prs

The following reply was made to PR libgcj/4859; it has been noted by GNATS.

From: tromey@gcc.gnu.org
To: crxop@tiscalinet.it, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
  gcc-prs@gcc.gnu.org, java-prs@gcc.gnu.org, nobody@gcc.gnu.org,
  tromey@gcc.gnu.org
Cc:  
Subject: Re: libgcj/4859: java.util.Timer class throw IllegalStateException on cancel()
Date: 13 Nov 2001 23:10:54 -0000

 Synopsis: java.util.Timer class throw IllegalStateException on cancel()
 
 Responsible-Changed-From-To: unassigned->tromey
 Responsible-Changed-By: tromey
 Responsible-Changed-When: Tue Nov 13 15:10:54 2001
 Responsible-Changed-Why:
     I'm handling this.
 State-Changed-From-To: open->closed
 State-Changed-By: tromey
 State-Changed-When: Tue Nov 13 15:10:54 2001
 State-Changed-Why:
     I checked in a fix for this.  It will appear in gcj 3.1.
     If you try it and have a problem, tell me and I will
     reopen the PR.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4859&database=gcc


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: libgcj/4859: java.util.Timer class throw IllegalStateException on cancel()
@ 2001-11-02  7:28 tromey
  0 siblings, 0 replies; 3+ messages in thread
From: tromey @ 2001-11-02  7:28 UTC (permalink / raw)
  To: crxop, gcc-bugs, gcc-gnats, gcc-prs, java-prs, nobody, tromey

Synopsis: java.util.Timer class throw IllegalStateException on cancel()

Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Tue Nov 13 15:10:54 2001
Responsible-Changed-Why:
    I'm handling this.
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Tue Nov 13 15:10:54 2001
State-Changed-Why:
    I checked in a fix for this.  It will appear in gcj 3.1.
    If you try it and have a problem, tell me and I will
    reopen the PR.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4859&database=gcc


^ permalink raw reply	[flat|nested] 3+ messages in thread

* libgcj/4859: java.util.Timer class throw IllegalStateException on cancel()
@ 2001-11-01 15:36 crxop
  0 siblings, 0 replies; 3+ messages in thread
From: crxop @ 2001-11-01 15:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         4859
>Category:       libgcj
>Synopsis:       java.util.Timer class throw IllegalStateException on cancel()
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 12 10:36:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     crxop@tiscalinet.it
>Release:        libgcj-3.0
>Organization:
>Environment:
Debian Gnu/Linux woody gcc-3.0
>Description:
Folliwing code come from http://java.sun.com/docs/books/tutorial/essential/threads/timer.html

With a change this call Timer.schedule(TimerTask,long,long)
instead of Timer.schedule(TimerTask,long).
Sun's JVM-1.4b3 works with this code (no exception). 
kaffe-1.0.6 works (no exception).

import java.util.Timer;
import java.util.TimerTask;
public class Reminder {
    Timer timer;
    public Reminder(int seconds){
	timer = new Timer();
	timer.schedule(new RemindTask(),seconds*1000,1000);
    }
    class RemindTask extends TimerTask {
	public void run(){
	    System.out.println("Ohh!");
	    timer.cancel();
	}
    }
    public static void main(String[] args){
	System.out.println("About to schedule task.");
	new Reminder(5);
	System.out.println("Hello world! ...\n");
    }
}

Error: .. try
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-11-13 23:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-02  7:54 libgcj/4859: java.util.Timer class throw IllegalStateException on cancel() tromey
  -- strict thread matches above, loose matches on Subject: below --
2001-11-02  7:28 tromey
2001-11-01 15:36 crxop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).