libgcj/13

John Stracke francis@thibault.org
Thu Mar 2 11:16:00 GMT 2000


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

From: John Stracke <francis@thibault.org>
To: java-gnats@sourceware.cygnus.com, tromey@cygnus.com, bryce@albatross.co.nz
Cc:  
Subject: Re: libgcj/13
Date: Thu, 02 Mar 2000 14:17:28 -0500

 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=13&database=java
 
 I tried the suggested workaround of linking in pthreads before gcjgc
 (in libgcj.spec), and it didn't work; my test program (below) got a
 coredump.
 
 import java.io.DataInputStream;
 import java.io.IOException;
 
 public class Thread1 implements Runnable {
     public void run()
     {
  System.err.println("Thread1");
  DataInputStream in=new DataInputStream(System.in);
  try {
      String line=in.readLine();
  } catch (IOException io) {
      System.err.println(io);
  }
     }
 
     public static void main(String args[])
     {
  Thread t=new Thread(new Thread1());
  t.start();
  System.err.println("Thread2");
     }
 };
 
 --
 /================================================================\
 |John Stracke        | http://www.thibault.org |S/MIME, HTML OK  |
 |Francois Thibault   |===========================================|
 |Bhakail, East       |"The Elliot 903 was the first portable I   |
 |francis@thibault.org|ever used, though it needed a furniture van|
 |                    |to *make* it portable." --Will Rose        |
 \================================================================/
 
 
 


More information about the Java-prs mailing list