summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2009-12-16 18:10:04 +0000
committeraclement <aclement>2009-12-16 18:10:04 +0000
commit28fb861ff98a40315e38d47d6b36b9a412201349 (patch)
tree749d92dca642b647baaea5eb046e7e98f2f15fd4
parent8310b6ae94cd26c367e4750cd7f72d5542d8a80e (diff)
downloadaspectj-28fb861ff98a40315e38d47d6b36b9a412201349.tar.gz
aspectj-28fb861ff98a40315e38d47d6b36b9a412201349.zip
297013
-rw-r--r--org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java2
1 files changed, 2 insertions, 0 deletions
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