diff options
author | Sven Gothel <[email protected]> | 2015-08-29 21:02:32 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-08-29 21:02:32 +0200 |
commit | 426cec646d49ed1fe56611d18aaf4594c9edea53 (patch) | |
tree | 82a91e2a7066937d9495f773efe5326321fac1e5 /src/java/jogamp/common/util/locks | |
parent | b4ad01b53421a58ccfe7028a520cf3e06d6b6742 (diff) |
RecursiveThreadGroupLockImpl01Unfairish: Add toString() in IllegalArgumentException exceptions
Diffstat (limited to 'src/java/jogamp/common/util/locks')
-rw-r--r-- | src/java/jogamp/common/util/locks/RecursiveThreadGroupLockImpl01Unfairish.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/jogamp/common/util/locks/RecursiveThreadGroupLockImpl01Unfairish.java b/src/java/jogamp/common/util/locks/RecursiveThreadGroupLockImpl01Unfairish.java index 77f73d8..abd79eb 100644 --- a/src/java/jogamp/common/util/locks/RecursiveThreadGroupLockImpl01Unfairish.java +++ b/src/java/jogamp/common/util/locks/RecursiveThreadGroupLockImpl01Unfairish.java @@ -157,10 +157,10 @@ public class RecursiveThreadGroupLockImpl01Unfairish final Thread cur = Thread.currentThread(); final ThreadGroupSync tgSync = (ThreadGroupSync)sync; if(!tgSync.isOriginalOwner(cur)) { - throw new IllegalArgumentException("Current thread is not the original owner: orig-owner: "+tgSync.getOwner()+", current "+cur); + throw new IllegalArgumentException("Current thread is not the original owner: orig-owner: "+tgSync.getOwner()+", current "+cur+": "+toString()); } if(tgSync.isOriginalOwner(t)) { - throw new IllegalArgumentException("Passed thread is original owner: "+t); + throw new IllegalArgumentException("Passed thread is original owner: "+t+", "+toString()); } tgSync.addOwner(t); } |