]> source.dussan.org Git - aspectj.git/commitdiff
close files!
authoraclement <aclement>
Tue, 17 Oct 2006 14:53:42 +0000 (14:53 +0000)
committeraclement <aclement>
Tue, 17 Oct 2006 14:53:42 +0000 (14:53 +0000)
util/src/org/aspectj/util/ConfigParser.java
weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java

index fbbc457fa7938ec69f1ea61fa23f665708a7858b..0ea1bb6389e3f3265ce7564900c298571747dd30 100644 (file)
@@ -66,6 +66,7 @@ public class ConfigParser {
                 if (line.length() == 0) continue;
                 args.add(new Arg(line, new SourceLocation(configFile, lineNum)));
             }
+            stream.close();
         } catch (IOException e) {
             location = new SourceLocation(configFile, lineNum);
             showError("error reading config file: " + e.toString());
index 38a56ef5b2bfa8fd71ff7ec1a86eef41ec6b8293..72626eacdacba783f3b178dca4b1e6d358943ff9 100644 (file)
@@ -270,6 +270,7 @@ public class BcelWeaver implements IWeaver {
                        FileInputStream fis = new FileInputStream(classFiles[i]);
                        byte[] bytes = FileUtil.readAsByteArray(fis);
                        addIfAspect(bytes,classFiles[i].getAbsolutePath(),addedAspects);
+                       fis.close();
                }
                return addedAspects;
        }