From 1ff1f894b3edc4c241b580a38e8f1439ad2c531e Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 15 Jan 2023 03:16:15 +0100 Subject: TestRecursiveLock01, TestRecursiveThreadGroupLock01: 'yield()' -> 'yield_thread()' to avoid potential Java>17 collision (JEP 361) --- src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java | 6 +++--- .../jogamp/common/util/locks/TestRecursiveThreadGroupLock01.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java b/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java index 7455618..e5456f4 100644 --- a/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java +++ b/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java @@ -57,7 +57,7 @@ public class TestRecursiveLock01 extends SingletonJunitCase { } } - static void yield(final YieldMode mode) { + static void yield_thread(final YieldMode mode) { switch(mode) { case YIELD: Thread.yield(); @@ -119,7 +119,7 @@ public class TestRecursiveLock01 extends SingletonJunitCase { System.err.print("+"); } while(l>0) l--; - yield(yieldMode); + yield_thread(yieldMode); } finally { if(DEBUG) { System.err.print("-"); @@ -151,7 +151,7 @@ public class TestRecursiveLock01 extends SingletonJunitCase { System.err.print("+"); } while(l>0) l--; - yield(yieldMode); + yield_thread(yieldMode); } finally { if(DEBUG) { System.err.print("-"); diff --git a/src/junit/com/jogamp/common/util/locks/TestRecursiveThreadGroupLock01.java b/src/junit/com/jogamp/common/util/locks/TestRecursiveThreadGroupLock01.java index 30a0274..3cd40dd 100644 --- a/src/junit/com/jogamp/common/util/locks/TestRecursiveThreadGroupLock01.java +++ b/src/junit/com/jogamp/common/util/locks/TestRecursiveThreadGroupLock01.java @@ -53,7 +53,7 @@ public class TestRecursiveThreadGroupLock01 extends SingletonJunitCase { } } - static void yield(final YieldMode mode) { + static void yield_thread(final YieldMode mode) { switch(mode) { case YIELD: Thread.yield(); @@ -96,7 +96,7 @@ public class TestRecursiveThreadGroupLock01 extends SingletonJunitCase { slaves[i].start(); } while(slaveCounter