aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/packagePrefix
diff options
context:
space:
mode:
authorwisberg <wisberg>2002-12-16 18:51:06 +0000
committerwisberg <wisberg>2002-12-16 18:51:06 +0000
commit144143c2970a1e874d74cdbd0f8c622d4282a3c3 (patch)
treeb12383d3d9e76c7e1f25f7fbec83051ef17f81fb /tests/new/packagePrefix
parentfafae443719b26159ab2d7dac1c9b46b5e00b671 (diff)
downloadaspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.tar.gz
aspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.zip
initial version
Diffstat (limited to 'tests/new/packagePrefix')
-rw-r--r--tests/new/packagePrefix/p/prefix.java3
-rw-r--r--tests/new/packagePrefix/p/prefix/SomeClass.java12
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/new/packagePrefix/p/prefix.java b/tests/new/packagePrefix/p/prefix.java
new file mode 100644
index 000000000..72865af32
--- /dev/null
+++ b/tests/new/packagePrefix/p/prefix.java
@@ -0,0 +1,3 @@
+package p;
+/** @testcase PUREJAVA PR#574 compile problems loading classes whose package names are suffixes of class names */
+public class prefix{}
diff --git a/tests/new/packagePrefix/p/prefix/SomeClass.java b/tests/new/packagePrefix/p/prefix/SomeClass.java
new file mode 100644
index 000000000..4f6a6031f
--- /dev/null
+++ b/tests/new/packagePrefix/p/prefix/SomeClass.java
@@ -0,0 +1,12 @@
+
+package p.prefix;
+
+import org.aspectj.testing.Tester;
+
+/** @testcase PUREJAVA PR#574 compile problems loading classes whose package names are suffixes of class names */
+public class SomeClass {
+ public static void main(String[] args) {
+ int i = new p.prefix().hashCode();
+ Tester.check(i!=0, "int i = new p.prefix().hashCode()");
+ }
+}