diff options
author | aclement <aclement> | 2004-04-02 12:45:13 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-04-02 12:45:13 +0000 |
commit | 0521e79aea0550b1357a7ccc6a5050f8ce27ce9b (patch) | |
tree | fd1c5bdfe7780257d007f7130fe9355352554372 /tests/bugs/StringToString | |
parent | 33d8ee9eededcd1219a6cbd1d063af005d40a3f7 (diff) | |
download | aspectj-0521e79aea0550b1357a7ccc6a5050f8ce27ce9b.tar.gz aspectj-0521e79aea0550b1357a7ccc6a5050f8ce27ce9b.zip |
Fix for Bug 55341
error Type mismatch: cannot convert from java.lang.String to java.lang.String
Diffstat (limited to 'tests/bugs/StringToString')
-rw-r--r-- | tests/bugs/StringToString/HW.java | 28 | ||||
-rw-r--r-- | tests/bugs/StringToString/X.java | 10 | ||||
-rw-r--r-- | tests/bugs/StringToString/helloworld.jar | bin | 0 -> 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 Binary files differnew file mode 100644 index 000000000..185b8eb2b --- /dev/null +++ b/tests/bugs/StringToString/helloworld.jar |