Browse Source

Class.newInstance throws a NoSuchMethodError in JDK 1.1 if there is no

no-arg constructor.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269024 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
5c4140f469
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/AntClassLoader.java

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

@@ -171,7 +171,7 @@ public class AntClassLoader extends ClassLoader {
try { try {
theClass.newInstance(); theClass.newInstance();
} }
catch (Exception e) {
catch (Throwable t) {
//ignore - our work is done //ignore - our work is done
} }
} }


Loading…
Cancel
Save