jakarta-bsf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r931316 - /jakarta/bsf/branches/bsf3.x/bsf-api/src/main/java/javax/script/ScriptEngineManager.java
Date Tue, 06 Apr 2010 20:41:11 GMT
Author: sebb
Date: Tue Apr  6 20:41:11 2010
New Revision: 931316

URL: http://svn.apache.org/viewvc?rev=931316&view=rev
Log:
BSF-30 - Partial fix: don't catch ThreadDeath

Modified:
    jakarta/bsf/branches/bsf3.x/bsf-api/src/main/java/javax/script/ScriptEngineManager.java

Modified: jakarta/bsf/branches/bsf3.x/bsf-api/src/main/java/javax/script/ScriptEngineManager.java
URL: http://svn.apache.org/viewvc/jakarta/bsf/branches/bsf3.x/bsf-api/src/main/java/javax/script/ScriptEngineManager.java?rev=931316&r1=931315&r2=931316&view=diff
==============================================================================
--- jakarta/bsf/branches/bsf3.x/bsf-api/src/main/java/javax/script/ScriptEngineManager.java
(original)
+++ jakarta/bsf/branches/bsf3.x/bsf-api/src/main/java/javax/script/ScriptEngineManager.java
Tue Apr  6 20:41:11 2010
@@ -77,6 +77,9 @@ public class ScriptEngineManager {
             ScriptEngineFactory factory;
             try {
                 factory = (ScriptEngineFactory) iterator.next();
+            } catch (ThreadDeath td) { // must not ignore this
+                throw td;
+            // See BSF-30 - iterator may throw Error
             } catch (Error ignored) {
                 continue;
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-dev-help@jakarta.apache.org


Mime
View raw message