From 28fb861ff98a40315e38d47d6b36b9a412201349 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 16 Dec 2009 18:10:04 +0000 Subject: [PATCH] 297013 --- org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5