bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/37983] trouble w/ synchronized close method in PushbackIn


From: robert dot dodier at gmail dot com
Subject: [Bug classpath/37983] trouble w/ synchronized close method in PushbackInputStream
Date: 10 Nov 2008 17:04:04 -0000


------- Comment #1 from robert dot dodier at gmail dot com  2008-11-10 17:04 
-------
Here's a patch. This is just to show what I did to get it to work. I don't
claim this is necessarily a good idea.

$ cat PushbackInputStream.java-deadlock-patch
--- PushbackInputStream.java-original   2008-10-31 11:41:41.000000000 -0600
+++ PushbackInputStream.java    2008-10-31 16:24:25.000000000 -0600
@@ -131,7 +131,7 @@
    *
    * @exception IOException If an error occurs.
    */
-  public synchronized void close() throws IOException
+  public void close() throws IOException
   {
     buf = null;
     super.close();


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37983





reply via email to

[Prev in Thread] Current Thread [Next in Thread]