From 144143c2970a1e874d74cdbd0f8c622d4282a3c3 Mon Sep 17 00:00:00 2001 From: wisberg Date: Mon, 16 Dec 2002 18:51:06 +0000 Subject: initial version --- tests/pureJava/conflictingPackageNames/Main.java | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/pureJava/conflictingPackageNames/Main.java (limited to 'tests/pureJava/conflictingPackageNames/Main.java') diff --git a/tests/pureJava/conflictingPackageNames/Main.java b/tests/pureJava/conflictingPackageNames/Main.java new file mode 100644 index 000000000..06eb6763f --- /dev/null +++ b/tests/pureJava/conflictingPackageNames/Main.java @@ -0,0 +1,27 @@ +import org.aspectj.testing.*; + +public class Main { + public static void main(String[] args) { + new Main().go(); + Tester.checkAllEvents(); + } + + public void go() { + + String str0 = new String("String:String"); + java.lang.String str1 = new String("java.lang.String:String"); + String str2 = new java.lang.String("String:java.lang.String"); + java.lang.String str3 = new java.lang.String("String:java.lang.java.lang.String"); + + Tester.checkEqual(str0, "String:String"); + Tester.checkEqual(str1, "java.lang.String:String"); + Tester.checkEqual(str2, "String:java.lang.String"); + Tester.checkEqual(str3, "String:java.lang.java.lang.String"); + + Tester.event("Driver.go"); + } + + static { + Tester.expectEvent("Driver.go"); + } +} -- cgit v1.2.3