From 14783484fbcb2151328592cee51531449fc03cb0 Mon Sep 17 00:00:00 2001 From: jhugunin Date: Wed, 8 Jan 2003 01:18:02 +0000 Subject: [PATCH] fixed strange dependence on a file named foo --- tests/new/MissingTypeInDeclareParents.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/new/MissingTypeInDeclareParents.java b/tests/new/MissingTypeInDeclareParents.java index ad969a65b..a2fd4f619 100644 --- a/tests/new/MissingTypeInDeclareParents.java +++ b/tests/new/MissingTypeInDeclareParents.java @@ -7,8 +7,8 @@ import java.io.*; public class MissingTypeInDeclareParents { public static void main(String[] args) throws Exception { - FileReader fr = new FileReader("foo"); - //fr.run(); + FileWriter fr = new FileWriter("foo"); + fr.close(); Tester.check(true, "Kilroy was here"); } } @@ -16,6 +16,6 @@ public class MissingTypeInDeclareParents { class C { } aspect A { - /** Xlint warning expected where FileReader is outside code controlled by implementation */ - declare parents : FileReader extends Runnable; // CW 20 Xlint warning + /** Xlint warning expected where FileWriter is outside code controlled by implementation */ + declare parents : FileWriter extends Runnable; // CW 20 Xlint warning } -- 2.39.5