aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bcel-builder/src/org/aspectj/apache/bcel/classfile/ClassParser.java13
-rw-r--r--lib/bcel/bcel-src.zipbin871173 -> 871321 bytes
-rw-r--r--lib/bcel/bcel.jarbin594013 -> 594151 bytes
3 files changed, 11 insertions, 2 deletions
diff --git a/bcel-builder/src/org/aspectj/apache/bcel/classfile/ClassParser.java b/bcel-builder/src/org/aspectj/apache/bcel/classfile/ClassParser.java
index e2508a00d..ae7f8c92e 100644
--- a/bcel-builder/src/org/aspectj/apache/bcel/classfile/ClassParser.java
+++ b/bcel-builder/src/org/aspectj/apache/bcel/classfile/ClassParser.java
@@ -70,7 +70,7 @@ import java.util.zip.*;
* JVM specification 1.0</a>. See this paper for
* further details about the structure of a bytecode file.
*
- * @version $Id: ClassParser.java,v 1.3 2005/09/14 11:10:57 aclement Exp $
+ * @version $Id: ClassParser.java,v 1.4 2005/10/14 08:39:32 aclement Exp $
* @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
*/
public final class ClassParser {
@@ -252,7 +252,16 @@ public final class ClassParser {
*/
private final void readConstantPool() throws IOException, ClassFormatException
{
- constant_pool = new ConstantPool(file);
+ try {
+ constant_pool = new ConstantPool(file);
+ } catch (ClassFormatException cfe) {
+ // add some context if we can
+ if (file_name!=null) {
+ String newmessage = "File: '"+file_name+"': "+cfe.getMessage();
+ throw new ClassFormatException(newmessage); // this loses the old stack trace but I dont think that matters!
+ }
+ throw cfe;
+ }
}
/**
diff --git a/lib/bcel/bcel-src.zip b/lib/bcel/bcel-src.zip
index fe7c65dbb..f76385b73 100644
--- a/lib/bcel/bcel-src.zip
+++ b/lib/bcel/bcel-src.zip
Binary files differ
diff --git a/lib/bcel/bcel.jar b/lib/bcel/bcel.jar
index addbe1c21..ca65e68b8 100644
--- a/lib/bcel/bcel.jar
+++ b/lib/bcel/bcel.jar
Binary files differ