Jogamp
users/mraynsford/gluegen.git
4 years agoBump to 2.1.2-devel (Commit 55cc188f0f076a046d05a49c1c82bb90ba545117 missed to incr... mark master
Sven Gothel [Fri, 25 Oct 2013 08:00:50 +0000 (10:00 +0200)]
Bump to 2.1.2-devel (Commit 55cc188f0f076a046d05a49c1c82bb90ba545117 missed to incr. sub-minor)

4 years agoBug 871 - Add optional xcode.clang support for all modules: Fix 'isCLANG' detection...
Sven Gothel [Fri, 25 Oct 2013 00:12:40 +0000 (02:12 +0200)]
Bug 871 - Add optional xcode.clang support for all modules: Fix 'isCLANG' detection ; echo 'gcc.compat.compiler'

4 years agoTempJarCache: Make 'initialization' query/flag thread safe, i.e. synchronize if ...
Sven Gothel [Thu, 24 Oct 2013 18:53:19 +0000 (20:53 +0200)]
TempJarCache: Make 'initialization' query/flag thread safe, i.e. synchronize if !isInit (dbl-check locking)

- isInit must be set to 'true' _after_ actual initialization, so caller can be blocked until done
- staticInitError must be volatile as well

4 years agoUse org.junit.Assert instead of deprecated junit.framework.Assert
Sven Gothel [Thu, 24 Oct 2013 18:30:31 +0000 (20:30 +0200)]
Use org.junit.Assert instead of deprecated junit.framework.Assert

4 years agoFix Bug 871 - Add optional xcode.clang support for all modules (Extends Bug 837 w...
Sven Gothel [Thu, 24 Oct 2013 18:14:44 +0000 (20:14 +0200)]
Fix Bug 871 - Add optional xcode.clang support for all modules (Extends Bug 837 w/ xcode's xcrun)

Bump make/lib/cpptasks.jar to a65cc99054a5a6684784bf9a9e8c13fe866b81ad

make/lib/gluegen-clang.properties: Defaults to xcode.clang

make/jogamp-env.xml: Show env. SDKROOT

4 years agoPlatformPropsImpl: Add static class OSXVersion w/ selected OSX VersionNumbers
Sven Gothel [Thu, 24 Oct 2013 00:41:27 +0000 (02:41 +0200)]
PlatformPropsImpl: Add static class OSXVersion w/ selected OSX VersionNumbers

4 years agoFix Bug 865: Safari >= 6.1 [OSX]: May employ xattr on 'com.apple.quarantine' on ...
Sven Gothel [Wed, 23 Oct 2013 14:48:42 +0000 (16:48 +0200)]
Fix Bug 865: Safari >= 6.1 [OSX]: May employ xattr on 'com.apple.quarantine' on 'PluginProcess.app'

- IOUtil.getTempDir(..): Don't test executable caps on OSX for java_io_tmpdir

- JarUtil.extract(..): Issue native fixNativeLibAttribs(..) on OSX for native library files,
                       i.e. remove xattr 'com.apple.quarantine'

4 years agoBump to 2.1.1-devel
Sven Gothel [Sat, 19 Oct 2013 05:59:23 +0000 (07:59 +0200)]
Bump to 2.1.1-devel

4 years agoRelease 2.1.1 (Android 0914016)
Sven Gothel [Sat, 19 Oct 2013 02:54:44 +0000 (04:54 +0200)]
Release 2.1.1 (Android 0914016)

4 years agoFix Bug 857: GlueGen produces erroneous file URI on Windows, which breaks Netbeans...
Sven Gothel [Fri, 18 Oct 2013 20:09:43 +0000 (22:09 +0200)]
Fix Bug 857: GlueGen produces erroneous file URI on Windows, which breaks Netbeans's JarURLStreamHandler

- 'URL IOUtil.toURL(URI)'

  - Needs to encode the file-path portion on Windows(*) if exists.
    The file-path here shall only be encoded as follows:
      - backslash -> slash
      - ensure starting with slash

    (*) We perform above action for all OS,
    if 'false == File.separator.equals("/")'

  - Added high verbosity in DEBUG mode to easy debugging
    for future cases ..

- Cleanup URI/URL unit tests, i.e. split URLCompositionTest into:
  - TestIOUtilURICompose
  - TestIOUtilURIHandling (Now covers Bug 857 as well)
  - TestUrisWithAssetHandler
  - TestURIQueryProps

Tested all unit tests manually on GNU/Linux and Windows w/ JRE 7u45

4 years agoBump 7u45
Sven Gothel [Fri, 18 Oct 2013 05:33:20 +0000 (07:33 +0200)]
Bump 7u45

4 years agogluegen: add all missing @Override annotations
Harvey Harrison [Fri, 18 Oct 2013 04:34:47 +0000 (21:34 -0700)]
gluegen: add all missing @Override annotations

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>

4 years agogluegen: remove trailing whitespace
Harvey Harrison [Fri, 18 Oct 2013 04:06:56 +0000 (21:06 -0700)]
gluegen: remove trailing whitespace

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>

4 years agoArrayHashSet: Use final local vars if applicable
Sven Gothel [Thu, 17 Oct 2013 14:18:53 +0000 (16:18 +0200)]
ArrayHashSet: Use final local vars if applicable

4 years agoArrayHashSet: Add @Override
Sven Gothel [Thu, 17 Oct 2013 14:14:04 +0000 (16:14 +0200)]
ArrayHashSet: Add @Override

4 years agoBug 800 - Add Windows 8 Touch Event Support / Enable Win 7 definitions via WINVER...
Sven Gothel [Sun, 13 Oct 2013 15:44:46 +0000 (17:44 +0200)]
Bug 800 - Add Windows 8 Touch Event Support / Enable Win 7 definitions via WINVER/_WIN32_NT 0x0601

4 years agoMerge pull request #16 from forticulous/buffers-spelling
Sven Gothel [Sat, 12 Oct 2013 16:42:42 +0000 (09:42 -0700)]
Merge pull request #16 from forticulous/buffers-spelling

Buffers.java - spelling (lenght -> length) - thx

4 years agoAndroid uses-sdk: Add android:targetSdkVersion="14" (to show up for tablets)
Sven Gothel [Fri, 11 Oct 2013 02:18:36 +0000 (04:18 +0200)]
Android uses-sdk: Add android:targetSdkVersion="14" (to show up for tablets)

4 years agoBump to 2.1.1-devel
Sven Gothel [Thu, 10 Oct 2013 16:05:14 +0000 (18:05 +0200)]
Bump to 2.1.1-devel

4 years agoRelease 2.1.0 (Android 0914015)
Sven Gothel [Thu, 10 Oct 2013 11:43:27 +0000 (13:43 +0200)]
Release 2.1.0 (Android 0914015)

4 years agoBug 820: Escape SPACE in filenames for URI ctor, use decoded URI components when...
Sven Gothel [Sun, 6 Oct 2013 23:06:42 +0000 (01:06 +0200)]
Bug 820: Escape SPACE in filenames for URI ctor, use decoded URI components when compiling new URI.

Add IOUtil:
  - String encodeToURI(String)
  - String decodeFromURI(String)

Both only handle escaping of SPACE only. Determine whether other chars need to be treated.

4 years agoartifact.properties: Add gluegen.build.version:=jogamp.version
Sven Gothel [Fri, 4 Oct 2013 16:46:36 +0000 (18:46 +0200)]
artifact.properties: Add gluegen.build.version:=jogamp.version

4 years agoVersionUtil.getPlatformInfo: include 'getOSVersionNumber()' beside it's string repres...
Sven Gothel [Thu, 3 Oct 2013 16:53:19 +0000 (18:53 +0200)]
VersionUtil.getPlatformInfo: include 'getOSVersionNumber()' beside it's string representation.

4 years agoPropertyAccess: Add trusted properties sun.java2d.opengl, sun.java2d.noddraw, sun...
Sven Gothel [Wed, 2 Oct 2013 21:59:45 +0000 (23:59 +0200)]
PropertyAccess: Add trusted properties sun.java2d.opengl, sun.java2d.noddraw, sun.java2d.d3d, sun.awt.noerasebackground

4 years agoIOUtil/JarUtil: Add more detail debug information for URI transformation; IOUtil...
Sven Gothel [Tue, 1 Oct 2013 21:03:18 +0000 (23:03 +0200)]
IOUtil/JarUtil: Add more detail debug information for URI transformation; IOUtil.toURL(..) handle exception at 'new File(uri)'

4 years agoJNILibLoaderBase.addNativeJarLibsImpl(..): Cleanup debug message creation.
Sven Gothel [Tue, 1 Oct 2013 20:43:49 +0000 (22:43 +0200)]
JNILibLoaderBase.addNativeJarLibsImpl(..): Cleanup debug message creation.

4 years agoBug 846: Add manual test case for One-Jar (using 0.97.1)
Sven Gothel [Tue, 1 Oct 2013 20:41:55 +0000 (22:41 +0200)]
Bug 846: Add manual test case for One-Jar (using 0.97.1)

Note: One-Jar lacks support of a URL handler for it's
jar-in-jar files and hence we would need to extract the jar-in-jar resources w/ our TempJarCache
from one one-jar file .. too bad. Looks like it's incomplete.

4 years agoBug 845: Fix JNILibLoaderBase.addNativeJarLibsImpl(..) fat-jar case.
Sven Gothel [Tue, 1 Oct 2013 13:34:05 +0000 (15:34 +0200)]
Bug 845: Fix JNILibLoaderBase.addNativeJarLibsImpl(..) fat-jar case.

Always use the jar-basename when calling TempJarCache.addNativeLibs(..),
otherwise it is mapped and loaded multiple times leading to different native libraries.

Simplify addNativeJarLibsImpl(..) argument semantics by passing complete jarBasename
and nativeJarBasename (w/ suffix).

Added manual test scripts validating [gluegen + jogl] usage
with multi (Bug 843) and fat (Bug 845) jar configurations.

4 years agoBug 845: Add support for one big-fat jar file [java classes plus all native 'os.and...
Sven Gothel [Tue, 1 Oct 2013 11:16:59 +0000 (13:16 +0200)]
Bug 845: Add support for one big-fat jar file [java classes plus all native 'os.and.arch' libraries]

JNILibLoaderBase.addNativeJarLibsImpl(..):

If the modules's jar file contains the folder 'natives/<os.and.arch>/'
we assume a big-fat jar and attempt to load all native libraries from the same.

The test for above folder is performed via the class ClassLoader's getResource(..)
and is considered inexpensive.

If the folder exists and native libraries could be loaded, the method returns successfull.

Otherwise, the 'slim' jar file is attempted to be loaded, even if such folder exist.

4 years agoFix Bug 844: Cannot ctor URI w/ scheme alone, use string-based concatenation native...
Sven Gothel [Tue, 1 Oct 2013 08:30:08 +0000 (10:30 +0200)]
Fix Bug 844: Cannot ctor URI w/ scheme alone, use string-based concatenation native URI root and jar file.

4 years agoFix Bug 843: Remove Platform's requirement and use of TempJarCache.bootstrapNativeLi...
Sven Gothel [Tue, 1 Oct 2013 05:41:45 +0000 (07:41 +0200)]
Fix Bug 843: Remove  Platform's requirement and use of TempJarCache.bootstrapNativeLib(),  allowing versatile use of 1st native jar file (big-java-jar w/  big-native-jar)

The remaining Platform dependency existed in IOUtil.copyStream2Stream(..), used by JarUtil.extract(..),
i.e. the MachineDescription's PAGE_SIZE.

Solved by using a const buffer size of 4096 bytes.

4 years agoBug 816: Add Platform.JAVA_VERSION_UPDATE - Allowing to determin whether JVM is ...
Sven Gothel [Sun, 22 Sep 2013 05:48:45 +0000 (07:48 +0200)]
Bug 816: Add Platform.JAVA_VERSION_UPDATE - Allowing to determin whether JVM is >= 1.7.0u40

4 years agoFix build issue on OSX w/ Java6. target.rt.jar is not enough for compile-time classes...
Sven Gothel [Sat, 21 Sep 2013 04:11:58 +0000 (06:11 +0200)]
Fix build issue on OSX w/ Java6. target.rt.jar is not enough for compile-time classes (host), since com.sun.tools.doclets.Taglet is required.

4 years agoFix Bug 835: Use target.[sourcelevel,targetlevel,rt.jar] for all javac tasks.
Sven Gothel [Thu, 19 Sep 2013 06:36:07 +0000 (08:36 +0200)]
Fix Bug 835: Use target.[sourcelevel,targetlevel,rt.jar] for all javac tasks.

Before we bumped java language version to 1.6, i.e. target == 1.5,
we required to compile some parts w/ the host level (1.6).

This is no more required.

4 years agoBump to JDK/JRE 7u40.
Sven Gothel [Thu, 19 Sep 2013 02:16:18 +0000 (04:16 +0200)]
Bump to JDK/JRE 7u40.

4 years agoComplete a5dacb0b2b6e17f00efe520c1d23bc33ba5d9f78: Only patch symbols w/ __GNUC__...
Sven Gothel [Fri, 13 Sep 2013 16:55:45 +0000 (18:55 +0200)]
Complete a5dacb0b2b6e17f00efe520c1d23bc33ba5d9f78: Only patch symbols w/ __GNUC__, aka 'gcc' - _without_ clang !

4 years agoglibc-compat-symbols.h: Only patch symbols w/ __GNUC__, aka 'gcc'
Sven Gothel [Fri, 13 Sep 2013 16:23:55 +0000 (18:23 +0200)]
glibc-compat-symbols.h: Only patch symbols w/ __GNUC__, aka 'gcc'

4 years agoComplete commit 10a28c860bd3f4ccecef156c9bbbc88087bf568d: Add source jar file of...
Sven Gothel [Fri, 13 Sep 2013 10:56:35 +0000 (12:56 +0200)]
Complete commit 10a28c860bd3f4ccecef156c9bbbc88087bf568d: Add source jar file of junit 4.11 (incl. hamcrest 1.2).

4 years agojawt_md.h: fix preprocessor comment
Sven Gothel [Fri, 13 Sep 2013 10:54:21 +0000 (12:54 +0200)]
jawt_md.h: fix preprocessor comment

4 years agoAdd clang support: 'gluegen.properties' adds 'gcc.compat.compiler' = ['gcc', 'clang...
Sven Gothel [Fri, 13 Sep 2013 10:53:50 +0000 (12:53 +0200)]
Add clang support: 'gluegen.properties' adds 'gcc.compat.compiler' = ['gcc', 'clang']; Use 'gcc.compat.compiler' for all gcc based compiler/linker definitions.

4 years agoBump cpptasks.jar to ant-cpptasks git-sha1 8c2badcaba6b791082d50efda4441b7c69f4adbf
Sven Gothel [Fri, 13 Sep 2013 10:51:07 +0000 (12:51 +0200)]
Bump cpptasks.jar to ant-cpptasks git-sha1 8c2badcaba6b791082d50efda4441b7c69f4adbf

4 years agoRemove cpptasks archive, using <http://jogamp.org/git/?p=ant-cpptasks.git;a=summary>
Sven Gothel [Wed, 11 Sep 2013 23:08:05 +0000 (01:08 +0200)]
Remove cpptasks archive, using <jogamp.org/git/?p=ant-cpptasks.git;a=summary>

4 years agoMerge remote-tracking branch 'hharrison/master'
Sven Gothel [Sun, 8 Sep 2013 13:34:24 +0000 (15:34 +0200)]
Merge remote-tracking branch 'hharrison/master'

4 years agoJavaDoc Stylescheet: Less glowing blue links: 4444ff -> 4444cc
Sven Gothel [Sun, 8 Sep 2013 13:32:33 +0000 (15:32 +0200)]
JavaDoc Stylescheet: Less glowing blue links: 4444ff -> 4444cc

4 years agogluegen: loop over entries in HashMap directly rather than looping over keys
Harvey Harrison [Wed, 4 Sep 2013 22:55:40 +0000 (15:55 -0700)]
gluegen: loop over entries in HashMap directly rather than looping over keys

This saves repeated lookups of the value mapped to each key by just looping
over the entries directly.

Also remove the URIException clause as this method never can throw that exception.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>

4 years agogluegen: remove trailing whitespace from URIQueryProps
Harvey Harrison [Wed, 4 Sep 2013 22:52:17 +0000 (15:52 -0700)]
gluegen: remove trailing whitespace from URIQueryProps

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>

4 years agoFix Bug 810: Moved Julien Gouesse's fix to GlueGen to solve JOGL's optional module...
Sven Gothel [Mon, 2 Sep 2013 18:59:14 +0000 (20:59 +0200)]
Fix Bug 810: Moved Julien Gouesse's fix to GlueGen to solve JOGL's optional module dependencies, added more API doc.

4 years agoVersion: Bump to developer version 2.1.0, 0914014
Sven Gothel [Mon, 2 Sep 2013 17:17:42 +0000 (19:17 +0200)]
Version: Bump to developer version 2.1.0, 0914014

4 years agoAdd '@FixMethodOrder(MethodSorters.NAME_ASCENDING)' to all *Test* classes
Sven Gothel [Sat, 31 Aug 2013 14:38:56 +0000 (16:38 +0200)]
Add '@FixMethodOrder(MethodSorters.NAME_ASCENDING)' to all *Test* classes

4 years agoBump junit 4.8.2 -> 4.11 (incl. hamcrest 1.2) ; TestTempJarCache uses '@FixMethodOrde...
Sven Gothel [Sat, 31 Aug 2013 14:31:50 +0000 (16:31 +0200)]
Bump junit 4.8.2 -> 4.11 (incl. hamcrest 1.2) ; TestTempJarCache uses '@FixMethodOrder(MethodSorters.NAME_ASCENDING)' annotation

Issue: Java7 unit test order is no more predictable

Fix: junit 4.11 performs a determined (not defined default) test order.
     Additionally user can force ascending method name test order

Produced a drop-in junit.jar / junit-source.zip replacement, which includes
  - junit version version 4.11
  - hamcrest-core version 1.3

4 years agoURIQueryProps: Custumize query separator, allowing user to favor ';' over '&'
Sven Gothel [Fri, 30 Aug 2013 14:26:01 +0000 (16:26 +0200)]
URIQueryProps: Custumize query separator, allowing user to favor ';' over '&'

4 years agoAdd URIQueryProps: Simple tool to process URI queries as properties
Sven Gothel [Wed, 28 Aug 2013 12:37:54 +0000 (14:37 +0200)]
Add URIQueryProps: Simple tool to process URI queries as properties

4 years agoAndroidManifests Launcher/Test: Add Camera features and permission
Sven Gothel [Tue, 27 Aug 2013 17:23:22 +0000 (19:23 +0200)]
AndroidManifests Launcher/Test: Add Camera features and permission

4 years agoBuffers.java - spelling
Matthew Gibson [Tue, 27 Aug 2013 04:24:01 +0000 (21:24 -0700)]
Buffers.java - spelling

4 years agoDynamicLibraryBundle: Remove unused imports
Sven Gothel [Mon, 26 Aug 2013 05:05:07 +0000 (07:05 +0200)]
DynamicLibraryBundle: Remove unused imports

4 years ago*Ringbuffer: Remove Ringbuffer<T>.AllocEmptyArray interface to favor a more simple...
Sven Gothel [Sat, 24 Aug 2013 01:14:14 +0000 (03:14 +0200)]
*Ringbuffer: Remove Ringbuffer<T>.AllocEmptyArray interface to favor a more simple approach; Split 'grow' into 'growEmpty' and 'growFull'

- java.lang.reflect.Array can instantiate an array w/ a given array-type and length

- array-type is Class<? extends T[]>

- We either deduct the array-type via array.getClass(), or pass it (ctor for empty Ringbuffer).

- Split 'growBuffer(T[] newElements, int amount, ..)' into:
  - 'growEmptyBuffer(T[] newElements)'
  - 'growFullBuffer(int amount)'
  Allowing a more clean API w/ simpler semantics.

4 years agoAdd Ringbuffer interface an 2 implementations, synchronized (locking) SyncedRingbuffe...
Sven Gothel [Thu, 22 Aug 2013 21:39:58 +0000 (23:39 +0200)]
Add Ringbuffer interface an 2 implementations, synchronized (locking) SyncedRingbuffer and lock-free LFRingbuffer.

SyncedRingbuffer is moved from JOGL to GlueGen, and generalized w/ common interface Ringbuffer
to allow testing diff. implementations.

- Added Ringbuffer.AllocEmptyArray factory interface, allowing to pass a constructor
  to construct the generic array.

- Added functionality is growBuffer(..), allowing to either grow a full or empty buffer,
  using Ringbuffer.AllocEmptyArray.

- Removed explicit 'clearRef' at get*(..), always clear the taken reference for better
  interface generalization.

- Added LFRingbuffer, exposing lock-free get*(..) and put*(..) methods
  using the 'Always Keep One Slot Open' pattern using the read/write index as barriers only.

- Ctor's copy an optional passed user array into the internal array,
  utilizing Ringbuffer.AllocEmptyArray.

- Added unit tests.

4 years agoPlatform: Add accurate currentTimeMillis() and currentTimeMicros() native methods...
Sven Gothel [Thu, 15 Aug 2013 04:09:02 +0000 (06:09 +0200)]
Platform: Add accurate currentTimeMillis() and currentTimeMicros() native methods, based on 'gettimeofday(..)'

4 years agoVersion: Bump to 'devel' version ..
Sven Gothel [Thu, 15 Aug 2013 04:07:41 +0000 (06:07 +0200)]
Version: Bump to 'devel' version ..

4 years agoRemove _default_ workaround for Bug 566. Workaround shall no more be required - and...
Sven Gothel [Sat, 20 Jul 2013 18:26:24 +0000 (11:26 -0700)]
Remove _default_ workaround for Bug 566. Workaround shall no more be required - and it deadlocks AWT/NEWT jogl/joal lib loading.

Introduced w/ commits 1c03dfd6d1939a46018583419956e350e531f4fe
and e9e61421ef6009e6788998c471d1d3d30aaefea6

4 years agoRelease 2.0.2
Sven Gothel [Fri, 19 Jul 2013 03:13:07 +0000 (05:13 +0200)]
Release 2.0.2

4 years agoJavadoc: Use JogAmp Stylesheet / Colors ..
Sven Gothel [Wed, 17 Jul 2013 14:06:32 +0000 (16:06 +0200)]
Javadoc: Use JogAmp Stylesheet / Colors ..

4 years agoJavadoc: Adapt stylesheet to JogAmp color scheme ; Fix 'deep' list and list intendation.
Sven Gothel [Wed, 17 Jul 2013 13:58:05 +0000 (15:58 +0200)]
Javadoc: Adapt stylesheet to JogAmp color scheme ; Fix 'deep' list and list intendation.

4 years agoAdding orig. java7 javadoc stylesheet
Sven Gothel [Wed, 17 Jul 2013 13:56:49 +0000 (15:56 +0200)]
Adding orig. java7 javadoc stylesheet

4 years agoRemedy for Bug 782: Issue Debug.initSingleton() or Debug.debug(..) before calling...
Sven Gothel [Wed, 17 Jul 2013 02:21:29 +0000 (04:21 +0200)]
Remedy for Bug 782: Issue Debug.initSingleton() or Debug.debug(..) before calling 'PropertyAccess.isPropertyDefined(propName, default)' through Debug class.

Calling 'Debug.isPropertyDefined(propName, default)' may be 'optimized' to
'PropertyAccess.isPropertyDefined(propName, default)', which would skip the modules Debug's class initialization.

Iff that happens, an AccessControlException may happen, due to requesting an insecure property,
since modules own Debug class has not been added it's trusted prefixes from within it's init block yet.

This seems to be a bug of the JVM .. to me, however .. the above description is the only
able to explain the issue at hand.

+++

Fix calls Debug class own static methods, either Debug.initSingleton() or Debug.debug(),
before calling 'isPropertyDefined(propName, default)'.

+++

Also mark Debug class static methods final!

+++

4 years agogluegen: remove unneeded casts to JarEntry
Harvey Harrison [Tue, 16 Jul 2013 04:46:29 +0000 (21:46 -0700)]
gluegen: remove unneeded casts to JarEntry

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>

4 years agogluegen: remove implied use of StringBuffer while appending to StringBuilder
Harvey Harrison [Tue, 16 Jul 2013 04:43:56 +0000 (21:43 -0700)]
gluegen: remove implied use of StringBuffer while appending to StringBuilder

- call append on the StringBuilder we are using rather than using String concatenation, which
uses StringBuffer.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>

4 years agogluegen: remove redundant test for null relativePath
Harvey Harrison [Tue, 16 Jul 2013 04:39:19 +0000 (21:39 -0700)]
gluegen: remove redundant test for null relativePath

We are inside a block where relativePath must be non-null, remove the redundant check

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>

4 years agogluegen: remove redundant assignment of tmpBaseDir
Harvey Harrison [Tue, 16 Jul 2013 04:37:37 +0000 (21:37 -0700)]
gluegen: remove redundant assignment of tmpBaseDir

- can only be null here, remove the entire else condition

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>

4 years agogluegen: annotate Hastable of attributes as Hashtable<String, Object>
Harvey Harrison [Tue, 16 Jul 2013 04:32:42 +0000 (21:32 -0700)]
gluegen: annotate Hastable of attributes as Hashtable<String, Object>

- use copy-constructor rather than clone to suppress type warnings
- annotate a Class as Class<?>

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>

4 years agogluegen: remove unneeded casts to TNode
Harvey Harrison [Tue, 16 Jul 2013 04:32:05 +0000 (21:32 -0700)]
gluegen: remove unneeded casts to TNode

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>

4 years agoFunctionSymbol: Fix equals/hashCode comparison, i.e. skip args/type due to non overlo...
Sven Gothel [Sun, 14 Jul 2013 18:06:39 +0000 (20:06 +0200)]
FunctionSymbol: Fix equals/hashCode comparison, i.e. skip args/type due to non overloading of c-funcs.

4 years agoStringBuffer -> StringBuilder
Sven Gothel [Sun, 14 Jul 2013 18:06:00 +0000 (20:06 +0200)]
StringBuffer -> StringBuilder

4 years agoFix a typo (Retruns => Returns)
Sylvestre Ledru [Wed, 10 Jul 2013 09:48:27 +0000 (11:48 +0200)]
Fix a typo (Retruns => Returns)

4 years agoRunnableTask/FunctionTask run(): Write tExecuted in finally block, removing code...
Sven Gothel [Tue, 9 Jul 2013 02:25:06 +0000 (04:25 +0200)]
RunnableTask/FunctionTask run(): Write tExecuted in finally block, removing code redundancy and placing write at end of operation.

4 years agoScripts: Fix setenv for open-solaris/indiana/Illumus ..
Sven Gothel [Thu, 4 Jul 2013 18:20:35 +0000 (20:20 +0200)]
Scripts: Fix setenv for open-solaris/indiana/Illumus ..

4 years agoBack to developer version .. (post RC12)
Sven Gothel [Tue, 25 Jun 2013 21:27:31 +0000 (23:27 +0200)]
Back to developer version .. (post RC12)

4 years agoTAG RC12 / Android 0914013
Sven Gothel [Tue, 25 Jun 2013 11:54:09 +0000 (13:54 +0200)]
TAG RC12 / Android 0914013

4 years agoRefine commit 5e01e993aeba4e95fc8aa6e75b3e295011e27bbb, skip Buffers.sizeOfBufferElem...
Sven Gothel [Tue, 25 Jun 2013 07:31:04 +0000 (09:31 +0200)]
Refine commit 5e01e993aeba4e95fc8aa6e75b3e295011e27bbb, skip Buffers.sizeOfBufferElem(..) call.

4 years agoUnixDynamicLinkerImpl: Unify impl. of openLibraryLocal(..), openLibraryGlobal(.....
Sven Gothel [Tue, 25 Jun 2013 07:04:16 +0000 (09:04 +0200)]
UnixDynamicLinkerImpl: Unify impl. of openLibraryLocal(..), openLibraryGlobal(..) and lookupSymbolGlobal(..) - removing duplicate code.

4 years agoAbstractBuffer: Generalize 'capacity' calculation, since we may encounter a byte...
Sven Gothel [Tue, 25 Jun 2013 07:03:28 +0000 (09:03 +0200)]
AbstractBuffer: Generalize 'capacity' calculation, since we may encounter a byte-buffer w/ given elementSize semantics

4 years agoFix SingletonInstanceServerSocket.kill(): Needs to mark alive=false in case of JVM...
Sven Gothel [Tue, 25 Jun 2013 04:56:44 +0000 (06:56 +0200)]
Fix SingletonInstanceServerSocket.kill(): Needs to mark alive=false in case of JVM shutdown!

4 years agoFix commit e46b51f75b550bc0faf70ae18f526d466d8180f3
Sven Gothel [Mon, 24 Jun 2013 10:00:50 +0000 (12:00 +0200)]
Fix commit e46b51f75b550bc0faf70ae18f526d466d8180f3

Funny .. subclasses didn't compile in test compilation locally.

4 years agoSingletonInstance: Add stats about time/attempts, subtract real-time delta from remai...
Sven Gothel [Mon, 24 Jun 2013 09:53:02 +0000 (11:53 +0200)]
SingletonInstance: Add stats about time/attempts, subtract real-time delta from remaining amount.

4 years agoScripts: Build macosx w/ java7 targeting java6 in build-macosx.
Sven Gothel [Mon, 24 Jun 2013 06:32:06 +0000 (08:32 +0200)]
Scripts: Build macosx w/ java7 targeting java6 in build-macosx.

4 years agoFix commit eb842815498f5926828b49c48fffce22fc9586a2: Adding missing files
Sven Gothel [Sat, 22 Jun 2013 05:18:14 +0000 (07:18 +0200)]
Fix commit eb842815498f5926828b49c48fffce22fc9586a2: Adding missing files

4 years agoFix jogamp-androidtask.xml's keytool and jarsigner options for Java6 / Android compat...
Sven Gothel [Fri, 21 Jun 2013 10:01:52 +0000 (12:01 +0200)]
Fix jogamp-androidtask.xml's keytool and jarsigner options for Java6 / Android compatibility w/ Java7 toolchain.

4 years agoProcAddressTable: Fix regressions: getField(..) -> getDeclaredField(..), incl. access...
Sven Gothel [Fri, 21 Jun 2013 05:22:14 +0000 (07:22 +0200)]
ProcAddressTable: Fix regressions: getField(..) -> getDeclaredField(..), incl. access check; Utilize 'AccessibleObject.setAccessible(Field[], true)' for performance.

4 years agoProcAddressTable: If using a SecurityManager 'checkAllLinkPermission()' instead of...
Sven Gothel [Fri, 21 Jun 2013 02:30:49 +0000 (04:30 +0200)]
ProcAddressTable: If using a SecurityManager 'checkAllLinkPermission()' instead of 'checkAllPermissions' if accessing the cached function handles.

4 years agoscripts runtests ..
Sven Gothel [Fri, 21 Jun 2013 02:17:30 +0000 (04:17 +0200)]
scripts runtests ..

4 years agoScripts: Use a local hostname for JOGAMP_JAR_CODEBASE for security testing
Sven Gothel [Fri, 21 Jun 2013 01:45:49 +0000 (03:45 +0200)]
Scripts: Use a local hostname for JOGAMP_JAR_CODEBASE for security testing

4 years agoSecurity: Tighten DynamicLinker*, NativeLibrary and DynamicLibraryBundle access (2)
Sven Gothel [Fri, 21 Jun 2013 01:45:07 +0000 (03:45 +0200)]
Security: Tighten DynamicLinker*, NativeLibrary and DynamicLibraryBundle access (2)

- Completes 23341a2df2d2ea36784a16fa1db8bc7385351a12

- Replace 'DynamicLinker' interface w/ well documented one

- All DynamicLinker methods are now considered secure, i.e.:
  - open/lookup and close utilize reference counting on handle via a hash map.

  - lookupSymbol(..) and close(..) impl. validate the passed library handle
    whether it's retrieved via open*.
    This is the fast path, not that expensive.

  - lookupSymbolGlobal(..) performs
    Check acccess of 'new RuntimePermission("loadLibrary.*")' if SecurityManager is installed.
    This is the slow path.

- DynamicLibraryBundleInfo now reflects the security requirements,
  i.e. whether priviledged access is needed.

4 years agoFix regression of f69831574d4927d03d40c330d0b047d8c89622a4: Use getDeclaredField...
Sven Gothel [Fri, 21 Jun 2013 00:17:44 +0000 (02:17 +0200)]
Fix regression of f69831574d4927d03d40c330d0b047d8c89622a4: Use getDeclaredField() and setAccessible(true) due to package private handle fields.

4 years agoScripts Windows / JOGAMP_JAR_CODEBASE: No double quotes, otherwise they would be...
Sven Gothel [Thu, 20 Jun 2013 19:23:16 +0000 (21:23 +0200)]
Scripts Windows / JOGAMP_JAR_CODEBASE: No double quotes, otherwise they would be added to MANIFEST

4 years agoScripts: Windows java run: Use 6u45
Sven Gothel [Thu, 20 Jun 2013 18:27:21 +0000 (20:27 +0200)]
Scripts: Windows java run: Use 6u45

4 years agoScript: Add adb logcat script
Sven Gothel [Thu, 20 Jun 2013 18:25:04 +0000 (20:25 +0200)]
Script: Add adb logcat script

4 years agoProcAddressTable: Make all handles package private, use local PROCADDRESS_VAR_PREFIX...
Sven Gothel [Thu, 20 Jun 2013 18:06:35 +0000 (20:06 +0200)]
ProcAddressTable: Make all handles package private, use local PROCADDRESS_VAR_PREFIX instance, add checkAllPermissions() for reset() and initEntry(..)

- Generated ProcAddressTable's function handles are all package private
- Generated ProcAddressTable's visibility can be set via 'AccessControl' config, default: public.
- ProcAddressTable's reset() and initEntry(..) perform checkAllPermissions() 1st.

4 years agoDynamicLookupHelper: Add secure isFunctionAvailable(..); NativeLibrary: Add TODO...
Sven Gothel [Thu, 20 Jun 2013 18:01:38 +0000 (20:01 +0200)]
DynamicLookupHelper: Add secure isFunctionAvailable(..); NativeLibrary: Add TODO comments, re protected lookup functions.

4 years agoDynamicLinker*: Proper Override notation
Sven Gothel [Thu, 20 Jun 2013 17:51:57 +0000 (19:51 +0200)]
DynamicLinker*: Proper Override notation

4 years agoSecurity: Gluegen generated native methods w/ 'pass through function pointer' _must_...
Sven Gothel [Thu, 20 Jun 2013 06:59:55 +0000 (08:59 +0200)]
Security: Gluegen generated native methods w/ 'pass through function pointer' _must_ be private!

http://JogAmp.org git info: FAQ, tutorial and man pages.