summaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2007-01-22 23:27:49 +0000
committerKenneth Russel <[email protected]>2007-01-22 23:27:49 +0000
commita9c8a6e9b35b2e421eb9609171c0d9fd7e53ee57 (patch)
treedf6331ad49cda5ce30ca6acd2be7565127bc8bbe /src/classes/com/sun/opengl
parent1cf8d8f7c7673b33153b81fc218129413be36bdc (diff)
Fixed Issue 264: SecurityException in JOGLAppletLauncher if JOAL not present
Made JOGLAppletLauncher more robust to exceptions thrown from Class.forName() looking up AL.class. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1098 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl')
-rwxr-xr-xsrc/classes/com/sun/opengl/util/JOGLAppletLauncher.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/classes/com/sun/opengl/util/JOGLAppletLauncher.java b/src/classes/com/sun/opengl/util/JOGLAppletLauncher.java
index 4b68f7ff7..cfee6bde6 100755
--- a/src/classes/com/sun/opengl/util/JOGLAppletLauncher.java
+++ b/src/classes/com/sun/opengl/util/JOGLAppletLauncher.java
@@ -588,7 +588,11 @@ public class JOGLAppletLauncher extends Applet {
try {
Class alClass = Class.forName("net.java.games.joal.AL", false, this.getClass().getClassLoader());
haveJOAL = true;
- } catch (ClassNotFoundException cnfe) {
+ // Note: it seems that some JRE implementations can throw
+ // SecurityException as well as ClassNotFoundException, at least
+ // if the OpenAL classes are not present and the web server
+ // redirects elsewhere
+ } catch (Exception e) {
}
String[] nativeJarNames = new String[] {