Skip to content
The Jenkins Controller is preparing for shutdown. No new builds can be started.
Success

Changes

Summary

  1. Fix VersionNumber: Non digits cut off pattern was '\D.*' and cut off (details)
  2. VersionNumber: Remove printing Exception (was added for debugging (details)
  3. VersionNumber: Add API doc for string parsing (details)
  4. VersionNumber: API doc fix (details)
  5. Fix Bug 608: Push down TempJarCache.findLibrary(..) from (details)
  6. Adding com.jogamp.common.util.IntBitfield: Simple bitfield holder class (details)
  7. IntBitfield: Add API doc; Enhance put() method, return previous value to (details)
Commit 08a8defda8b6f49eb794cf787f688ba65bfe7b37 by Sven Gothel
Fix VersionNumber: Non digits cut off pattern was '\D.*' and cut off digits in case leading non digits appear.

'\D.*' matches a leading non-digit and then any character.

First the string is tokenized by delim:
  "OpenGL ES GLSL ES 1.0.16" -> "OpenGL ES GLSL ES 1", "0", "16"

Enhance pattern as follows and access collected group if matching:
        // group1: \D* == leading non digits, optional
        // group2: \d* == digits
        // group3: .*  == any pending chars, optional
        final java.util.regex.Pattern nonDigitsCutOff = java.util.regex.Pattern.compile("(\\D*)(\\d*)(.*)");

Reorganized storage from atomic values to int[3] array, allowing simple pattern matching loop.

Added unit test.
The file was modified make/scripts/runtest.sh (diff)
The file was modified src/java/com/jogamp/common/util/VersionNumber.java (diff)
The file was addedsrc/junit/com/jogamp/common/util/TestVersionNumber.java (diff)
Commit be7cd5059dea197bd3756e0b19f934041dc6ad13 by Sven Gothel
VersionNumber: Remove printing Exception (was added for debugging purposes)
The file was modified src/java/com/jogamp/common/util/VersionNumber.java (diff)
Commit c1a8c38e32b4ed8f97fc82602c90eb7b0b3cef6e by Sven Gothel
VersionNumber: Add API doc for string parsing
The file was modified src/java/com/jogamp/common/util/VersionNumber.java (diff)
Commit 661a625ed69faf701b6e868225148f630c2002d8 by Sven Gothel
VersionNumber: API doc fix
The file was modified src/java/com/jogamp/common/util/VersionNumber.java (diff)
Commit abbe6ce0973fbd82971ace1866515beefcc41817 by Sven Gothel
Fix Bug 608: Push down TempJarCache.findLibrary(..) from JNILibLoaderBase.loadLibraryInternal() to NativeLibrary.findLibrary(..)

This allows using TempJarCache (if used/initialized) for native 'tool' libraries as well.
This is the case of JOAL's attempt to load the provided 'libopenal.so'
The file was modified src/java/com/jogamp/common/os/NativeLibrary.java (diff)
The file was modified src/java/com/jogamp/common/jvm/JNILibLoaderBase.java (diff)
Commit 6bc876895b6b6a4e76896597d95dfd7c67bb6b49 by Sven Gothel
Adding com.jogamp.common.util.IntBitfield: Simple bitfield holder class using an int[] storage.

IntBitfield comes in handy to store bit states of a wide value range w/o being a memory hog an O(1) access,
e.g. keyCode -> isPressed maps etc.
The file was addedsrc/java/com/jogamp/common/util/IntBitfield.java (diff)
Commit 1507b376bada782b5064a0151d9b7871d1360b40 by Sven Gothel
IntBitfield: Add API doc; Enhance put() method, return previous value to be used more versatile and write only if value changed.
The file was modified src/java/com/jogamp/common/util/IntBitfield.java (diff)