diff options
author | aclement <aclement> | 2008-06-23 02:06:55 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-06-23 02:06:55 +0000 |
commit | c19df6f710ed03f956224e3d4a57610e7a50bb71 (patch) | |
tree | f60f1c162f7b02df6a016e10c9427d1d3e8e0136 /weaver | |
parent | 260bff8874f58878a70fe136157c520f013f1456 (diff) | |
download | aspectj-c19df6f710ed03f956224e3d4a57610e7a50bb71.tar.gz aspectj-c19df6f710ed03f956224e3d4a57610e7a50bb71.zip |
throw more helpful exceptions when serialized form broken
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/AjAttribute.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/AjAttribute.java b/weaver/src/org/aspectj/weaver/AjAttribute.java index 413c754f2..47e5fbf0b 100644 --- a/weaver/src/org/aspectj/weaver/AjAttribute.java +++ b/weaver/src/org/aspectj/weaver/AjAttribute.java @@ -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 ); } } |