Browse Source

Same fix as for AncestorAnalyzer - make code compile with BCEL's trunk

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@829307 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 15 years ago
parent
commit
a2cedaed6c
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      src/main/org/apache/tools/ant/util/depend/bcel/FullAnalyzer.java

+ 8
- 2
src/main/org/apache/tools/ant/util/depend/bcel/FullAnalyzer.java View File

@@ -24,6 +24,7 @@ import java.util.Vector;
import org.apache.bcel.classfile.ClassParser;
import org.apache.bcel.classfile.DescendingVisitor;
import org.apache.bcel.classfile.JavaClass;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.util.depend.AbstractAnalyzer;

/**
@@ -41,8 +42,13 @@ public class FullAnalyzer extends AbstractAnalyzer {
// force BCEL classes to load now
try {
new ClassParser("force");
} catch (IOException e) {
// ignore
} catch (Exception e) {
// all released versions of BCEL may throw an IOException
// here, but BCEL's trunk does no longer declare to do so
if (!(e instanceof IOException)) {
throw new BuildException(e);
}
// ignore IOException like we've always done
}
}



Loading…
Cancel
Save