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


Reply via email to