Browse Source

Avoid catching ThreadDeath; just pass it on.

Cf. http://www.netbeans.org/nonav/issues/show_bug.cgi?id=47191


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@380877 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 19 years ago
parent
commit
debf87817e
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/main/org/apache/tools/ant/taskdefs/Java.java

+ 2
- 0
src/main/org/apache/tools/ant/taskdefs/Java.java View File

@@ -203,6 +203,8 @@ public class Java extends Task {
log(e); log(e);
return 0; return 0;
} }
} catch (ThreadDeath t) {
throw t; // cf. NB #47191
} catch (Throwable t) { } catch (Throwable t) {
if (failOnError) { if (failOnError) {
throw new BuildException(t, getLocation()); throw new BuildException(t, getLocation());


Loading…
Cancel
Save