diff options
author | aclement <aclement> | 2006-10-17 14:53:42 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-10-17 14:53:42 +0000 |
commit | 1a2eef067f87e9037bd39f20d4c682c642689de8 (patch) | |
tree | 2e80310fb589f5df26cf4160b50f2ceb7389a964 | |
parent | bc2f36fdbf0e0a8d59e9613b69a3b4639b1dd668 (diff) | |
download | aspectj-1a2eef067f87e9037bd39f20d4c682c642689de8.tar.gz aspectj-1a2eef067f87e9037bd39f20d4c682c642689de8.zip |
close files!
-rw-r--r-- | util/src/org/aspectj/util/ConfigParser.java | 1 | ||||
-rw-r--r-- | weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java | 1 |
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; } |