From 4309d1334a2b036c7bf15612199bb7391a57980b Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Tue, 16 Oct 2012 00:21:43 -0700 Subject: gluegen: replace Thread name with name of lock file in SingletonInstanceFileLock error message The getName() call here is currently calling Thread.getName() inherited by the anonymous inner class. This is ambiguous, and likely meant to call the getName() method of SingletonInstanceFileLock, which would output the lockfile name. In any event, infoPrefix() is already adding the Thread name for us. Signed-off-by: Harvey Harrison --- src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/java/jogamp/common/util/locks') diff --git a/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java b/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java index a76f261..42d125a 100644 --- a/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java +++ b/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java @@ -80,7 +80,7 @@ public class SingletonInstanceFileLock extends SingletonInstance { @Override public void run() { if(isLocked()) { - System.err.println(infoPrefix()+" XXX "+getName()+" - Unlock @ JVM Shutdown"); + System.err.println(infoPrefix()+" XXX "+SingletonInstanceFileLock.this.getName()+" - Unlock @ JVM Shutdown"); } unlock(); } -- cgit v1.2.3