summaryrefslogtreecommitdiffstats
path: root/src/nativewindow
diff options
context:
space:
mode:
Diffstat (limited to 'src/nativewindow')
-rw-r--r--src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowVersion.java6
1 files changed, 3 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..6f4c75887 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);
}
}
@@ -55,6 +54,7 @@ public class NativeWindowVersion extends JogampVersion {
}
public static void main(String args[]) {
+ System.err.println(VersionUtil.getPlatformInfo());
System.err.println(NativeWindowVersion.getInstance());
}
}