aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2006-10-17 14:53:42 +0000
committeraclement <aclement>2006-10-17 14:53:42 +0000
commit1a2eef067f87e9037bd39f20d4c682c642689de8 (patch)
tree2e80310fb589f5df26cf4160b50f2ceb7389a964
parentbc2f36fdbf0e0a8d59e9613b69a3b4639b1dd668 (diff)
downloadaspectj-1a2eef067f87e9037bd39f20d4c682c642689de8.tar.gz
aspectj-1a2eef067f87e9037bd39f20d4c682c642689de8.zip
close files!
-rw-r--r--util/src/org/aspectj/util/ConfigParser.java1
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/util/src/org/aspectj/util/ConfigParser.java b/util/src/org/aspectj/util/ConfigParser.java
index fbbc457fa..0ea1bb638 100644
--- a/util/src/org/aspectj/util/ConfigParser.java
+++ b/util/src/org/aspectj/util/ConfigParser.java
@@ -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());
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java b/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java
index 38a56ef5b..72626eacd 100644
--- a/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java
+++ b/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java
@@ -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;
}