]> source.dussan.org Git - aspectj.git/commitdiff
throw more helpful exceptions when serialized form broken
authoraclement <aclement>
Mon, 23 Jun 2008 02:06:55 +0000 (02:06 +0000)
committeraclement <aclement>
Mon, 23 Jun 2008 02:06:55 +0000 (02:06 +0000)
weaver/src/org/aspectj/weaver/AjAttribute.java

index 413c754f2f90e7e6ba26e8b53822395be17f38b8..47e5fbf0b05e759627162f8eb4635c2ea961a04d 100644 (file)
@@ -123,8 +123,10 @@ public abstract class AjAttribute {
                                w.getMessageHandler().handleMessage(MessageUtil.warn("unknown attribute encountered "+name));
                                return null;
                        }
+               } catch (BCException e) {
+                       throw new BCException("malformed " + name + " attribute (length:"+bytes.length+")" + e );
                } catch (IOException e) {
-                       throw new BCException("malformed " + name + " attribute " + e);
+                       throw new BCException("malformed " + name + " attribute (length:"+bytes.length+")" + e );
                }
        }