From 0521e79aea0550b1357a7ccc6a5050f8ce27ce9b Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 2 Apr 2004 12:45:13 +0000 Subject: Fix for Bug 55341 error Type mismatch: cannot convert from java.lang.String to java.lang.String --- tests/bugs/StringToString/HW.java | 28 ++++++++++++++++++++++++++++ tests/bugs/StringToString/X.java | 10 ++++++++++ tests/bugs/StringToString/helloworld.jar | Bin 0 -> 1019 bytes 3 files changed, 38 insertions(+) create mode 100644 tests/bugs/StringToString/HW.java create mode 100644 tests/bugs/StringToString/X.java create mode 100644 tests/bugs/StringToString/helloworld.jar (limited to 'tests/bugs') 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 Binary files /dev/null and b/tests/bugs/StringToString/helloworld.jar differ -- cgit v1.2.3