summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/ArrayHashSet.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-11-29 08:15:11 +0100
committerSven Gothel <[email protected]>2011-11-29 08:15:11 +0100
commit1cdbadd0d2ad5509d970bed2fc388327ec2c4521 (patch)
tree09dd4c3821fd187df8659e35e684287238ae754c /src/java/com/jogamp/common/util/ArrayHashSet.java
parent9596ef22ae2e8ed0622697afdd3e7a1a1c2934ec (diff)
Fix TempJarCache's Multi-User Bug (Reported by Martin Hegedus)
It turns out that Java's File mkdir() only makes the directory writable for the current user, I have missed this fact. Great catch. 1. Fix TempJarCache.isInitialized(): Return false if not successfully initialized. It merely returned if it has passed 'initSingleton()' and ignored the staticInitError. 2. Fix TempFileCache pattern of determining the temp base directory We cannot just use a static directory name, due to the multi user environment and user write permissions on File.mkdir(). IOUtil has a new 'getTempDir(..)' methods, which iterates through integers [000000-999999] until a writeable directory could be found or created. TempFileCache initializes this temp base dir in the static block ensuring the value is final for the JVM / ClassLoader. Updated comments/docs in TempFileCache.
Diffstat (limited to 'src/java/com/jogamp/common/util/ArrayHashSet.java')
0 files changed, 0 insertions, 0 deletions