aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/StringToString/HW.java28
-rw-r--r--tests/bugs/StringToString/X.java10
-rw-r--r--tests/bugs/StringToString/helloworld.jarbin0 -> 1019 bytes
3 files changed, 38 insertions, 0 deletions
diff --git a/tests/bugs/StringToString/HW.java b/tests/bugs/StringToString/HW.java
new file mode 100644
index 000000000..66eeca22c
--- /dev/null
+++ b/tests/bugs/StringToString/HW.java
@@ -0,0 +1,28 @@
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.Properties;
+
+public class HW extends ArrayList {
+
+ String message = "Hello World!";
+
+ private void check (String args) {
+ }
+
+ public void println () {
+ System.out.println(message);
+ }
+
+ public static void main(String[] args) {
+ HW hw = new HW();
+ hw.println();
+ for (int i = 0; i < args.length; i++) {
+ String jp = args[i];
+ if (!hw.contains(jp)) {
+ throw new RuntimeException(jp + " missing");
+ }
+ }
+ }
+
+}
diff --git a/tests/bugs/StringToString/X.java b/tests/bugs/StringToString/X.java
new file mode 100644
index 000000000..9ef81978c
--- /dev/null
+++ b/tests/bugs/StringToString/X.java
@@ -0,0 +1,10 @@
+// PR55341
+aspect F {
+ private int HW.intField = 999;
+}
+
+aspect M {
+ public String HW.getMessage () {
+ return message;
+ }
+}
diff --git a/tests/bugs/StringToString/helloworld.jar b/tests/bugs/StringToString/helloworld.jar
new file mode 100644
index 000000000..185b8eb2b
--- /dev/null
+++ b/tests/bugs/StringToString/helloworld.jar
Binary files differ