Browse Source

Avoiding to catch unspecified Error. The context indicates we want to continue even when loading a class is unsuccessful. The only Error we expect and want to continue on would in that case be LinkageError (and not e.g ThreadDeath / VirtualMachineError).

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278323 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 20 years ago
parent
commit
1511487597
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/Diagnostics.java

+ 1
- 1
src/main/org/apache/tools/ant/Diagnostics.java View File

@@ -362,7 +362,7 @@ public final class Diagnostics {
} catch (NoClassDefFoundError e) {
String pkg = e.getMessage().replace('/', '.');
out.println(key + " : Missing dependency " + pkg);
} catch (Error e) {
} catch (LinkageError e) {
out.println(key + " : Initialization error");
}
}


Loading…
Cancel
Save