From: aclement Date: Wed, 16 Dec 2009 18:10:04 +0000 (+0000) Subject: 297013 X-Git-Tag: V1_6_7~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=28fb861ff98a40315e38d47d6b36b9a412201349;p=aspectj.git 297013 --- diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java b/org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java index e71095986..af984174d 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java @@ -57,6 +57,7 @@ public abstract class AjAttribute { ByteArrayOutputStream b0 = new ByteArrayOutputStream(); DataOutputStream s0 = new DataOutputStream(b0); write(s0); + s0.close(); return b0.toByteArray(); } catch (IOException e) { // shouldn't happen with ByteArrayOutputStreams @@ -77,6 +78,7 @@ public abstract class AjAttribute { s0.writeShort(nameIndex); s0.writeInt(bytes.length); s0.write(bytes); + s0.close(); return b0.toByteArray(); } catch (IOException e) { // shouldn't happen with ByteArrayOutputStreams