]> source.dussan.org Git - aspectj.git/commitdiff
297013
authoraclement <aclement>
Wed, 16 Dec 2009 18:10:04 +0000 (18:10 +0000)
committeraclement <aclement>
Wed, 16 Dec 2009 18:10:04 +0000 (18:10 +0000)
org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java

index e7109598607a76d5162d205b00156e5c237d1356..af984174d3ea0508718de02031ab4a0015c3740e 100644 (file)
@@ -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