db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject Re: failures with 10.6.0.0 alpha - (891102)
Date Thu, 17 Dec 2009 23:47:23 GMT
Dag H. Wanvik wrote:
> I presume you mean the "interruped" method, which clears the flag (and
> which the test uses). The "isInterrupted" version does not clear the
> flag according to the API. In any case, if the flag is being cleared
> also for IBM VMs, the mystery is growing ;-)
>   

Yes I am sorry, for clarity this was my patch to verify it cleared ok.

Index: 
java/testing/org/apache/derbyTesting/functionTests/tests/store/Derby151Test.java
===================================================================
--- 
java/testing/org/apache/derbyTesting/functionTests/tests/store/Derby151Test.java    
(revision 891897)
+++ 
java/testing/org/apache/derbyTesting/functionTests/tests/store/Derby151Test.java    
(working copy)
@@ -123,7 +123,7 @@
         } finally {
             // always clear flag
             Thread.currentThread().interrupted();
-
+            assertFalse(Thread.currentThread().isInterrupted());
             if (insert != null) {
                 try {
                     insert.close(); // already closed by error



Mime
View raw message