joal.util.Version missing?

I just upgraded some apps from JOAL 1.1b03 (Sep '06) to 1.1.1 (July '07) (I sort of skipped the final 1.1.0 release of Dec '06). The upgrade broke a number of things. Most of them I understand and have fixed; however, one has me puzzled. In 1.1b03 (and earlier versions, I’m pretty sure), there was a class net.java.games.joal.util.Version, which I invoked with the statement

System.out.println ("JOAL Version = " + net.java.games.joal.util.Version.getVersion() );

That class has mysteriously disappeared (as of 1.1.0, it appears) from net.java.games.joal.util, and I can’t find any replacement. Am I just missing something in 1.1.1, or is there really no way to obtain the JOAL version number at runtime?

Thanks for any input.

We removed this as it was an unnecessary hack. You can use the java.lang.Package class to fetch the same information. There is an example of how to do this in the context of JOGL in demos.misc.VersionInfo in the jogl-demos workspace. The example is trivially convertible to work with JOAL.

Thanks for the reply. I’m embarassed to admit that I actually have the JOGL version of that code implemented in something I put together last Spring for a different class I’m teaching; I just forgot about it :-[

Now that I’ve got THAT solved ;), I have another somewhat weird question. I installed JOAL 1.1.1 from joal-1.1.1-windows-i586.zip under “Release Builds 2007, 1.1.1-July 4”. I then ran the following code that I got from a wonderful source :wink:

	
String packageName = "net.java.games.joal";
Package p = Package.getPackage(packageName);
if (p == null)
{
      System.out.println("\nJOAL package " + packageName + " not found\n");
}
else
{
     System.out.println("\nJOAL Version = " + p.getImplementationVersion());
}

This code prints the following output:


JOAL Version = 1.1.2

I verified that I really did install the 1.1.1 download; I even went back and re-downloaded it to be sure. Also, I’ve never (to my knowledge) downloaded any of the nightly builds or anything except files from the “stable release” area. Sooo… why is my 1.1.1 installation printing a version number of 1.1.2? Am I missing something?

Thanks again for the feedback.

Sorry, I must have messed up the version string in the manifest of that build. If it’s a big concern I can re-release it.

It’s not a big concern; it’s a very small one – once I understand it :slight_smile: It does pose minor issues in verifying the configuration status of the machines in our labs, but you probably have way more important things to do than fix something trivial like this; we can work with it.

Thanks for the feedback.