From 1e0288b397dfd914532c0f0cde850f4e5c5bc91d Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Thu, 18 Nov 2010 01:38:42 +0100 Subject: Version info debugging works now even without native libs. - Platform is now useable without gluegen-rt libs in library path. - JogampVersion: fixed equals, added Impl url to manifest. - VersionUtil: getManifest should be now more relieable and passed all manual tests, e.g java jar lib.jar without specified classpath. --- src/java/com/jogamp/common/GlueGenVersion.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/java/com/jogamp/common/GlueGenVersion.java') diff --git a/src/java/com/jogamp/common/GlueGenVersion.java b/src/java/com/jogamp/common/GlueGenVersion.java index e73d4bb..c59e96b 100644 --- a/src/java/com/jogamp/common/GlueGenVersion.java +++ b/src/java/com/jogamp/common/GlueGenVersion.java @@ -34,7 +34,7 @@ import java.util.jar.Manifest; public class GlueGenVersion extends JogampVersion { - protected static GlueGenVersion jogampCommonVersionInfo; + protected static volatile GlueGenVersion jogampCommonVersionInfo; protected GlueGenVersion(String packageName, Manifest mf) { super(packageName, mf); @@ -45,8 +45,7 @@ public class GlueGenVersion extends JogampVersion { synchronized(GlueGenVersion.class) { if( null == jogampCommonVersionInfo ) { final String packageName = "com.jogamp.common"; - final String fullClazzName = GlueGenVersion.class.getName(); - final Manifest mf = VersionUtil.getManifest(GlueGenVersion.class.getClassLoader(), fullClazzName); + final Manifest mf = VersionUtil.getManifest(GlueGenVersion.class.getClassLoader(), "com.jogamp.common"); jogampCommonVersionInfo = new GlueGenVersion(packageName, mf); } } -- cgit v1.2.3