diff options
author | Michael Bien <[email protected]> | 2010-11-18 02:44:19 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-11-18 02:44:19 +0100 |
commit | 448d9ca99a38f4f107c86ca3475129568cd74cf7 (patch) | |
tree | f3adbd9278dec8af95ef549c19c65187431071ee /src/nativewindow | |
parent | 7c159772fad5445d296ad0f06f07272a59325003 (diff) |
modifications due to changes in GlueGen's VersionUtil.getManifest().
made references created in double checked locks volatile.
Diffstat (limited to 'src/nativewindow')
-rw-r--r-- | src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowVersion.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowVersion.java b/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowVersion.java index 55757fc42..6f9666039 100644 --- a/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowVersion.java +++ b/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowVersion.java @@ -34,7 +34,7 @@ import java.util.jar.Manifest; public class NativeWindowVersion extends JogampVersion { - protected static NativeWindowVersion jogampCommonVersionInfo; + protected static volatile NativeWindowVersion jogampCommonVersionInfo; protected NativeWindowVersion(String packageName, Manifest mf) { super(packageName, mf); @@ -45,8 +45,7 @@ public class NativeWindowVersion extends JogampVersion { synchronized(NativeWindowVersion.class) { if( null == jogampCommonVersionInfo ) { final String packageName = "javax.media.nativewindow"; - final String fullClazzName = NativeWindowVersion.class.getName(); - final Manifest mf = VersionUtil.getManifest(NativeWindowVersion.class.getClassLoader(), fullClazzName); + final Manifest mf = VersionUtil.getManifest(NativeWindowVersion.class.getClassLoader(), packageName); jogampCommonVersionInfo = new NativeWindowVersion(packageName, mf); } } |