+++ /dev/null
-public class Driver {
-
- public static void main(String[] args) {
- ReturnTypeTester rtt = new ReturnTypeTester();
- rtt.hashCode();
- System.out.println(rtt.getId());
- if (rtt.hashCode() != "id".hashCode()) throw new RuntimeException("dispatch failure");
- }
-
-}
\ No newline at end of file
+++ /dev/null
-public aspect ReturnTypeTest {
- private interface Test {
- Object getId();
- int hashCode();
- }
-
- public int Test.hashCode() {
- System.out.println("in Test.hashCode()");
- return getId().hashCode();
- }
-
- declare parents : ReturnTypeTester implements Test;
-}
\ No newline at end of file
+++ /dev/null
-import java.util.HashSet;
-import java.util.Set;
-
-public class ReturnTypeTester {
- static Set<ReturnTypeTester> set = new HashSet<ReturnTypeTester>();
- static {
- ReturnTypeTester tester = new ReturnTypeTester();
- set.add(tester);
- }
-
- public String getId() {
- return "id";
- }
-}
\ No newline at end of file
--- /dev/null
+public class Driver {
+
+ public static void main(String[] args) {
+ ReturnTypeTester rtt = new ReturnTypeTester();
+ rtt.hashCode();
+ System.out.println(rtt.getId());
+ if (rtt.hashCode() != "id".hashCode()) throw new RuntimeException("dispatch failure");
+ }
+
+}
\ No newline at end of file
--- /dev/null
+public aspect ReturnTypeTest {
+ private interface Test {
+ Object getId();
+ int hashCode();
+ }
+
+ public int Test.hashCode() {
+ System.out.println("in Test.hashCode()");
+ return getId().hashCode();
+ }
+
+ declare parents : ReturnTypeTester implements Test;
+}
\ No newline at end of file
--- /dev/null
+import java.util.HashSet;
+import java.util.Set;
+
+public class ReturnTypeTester {
+ static Set<ReturnTypeTester> set = new HashSet<ReturnTypeTester>();
+ static {
+ ReturnTypeTester tester = new ReturnTypeTester();
+ set.add(tester);
+ }
+
+ public String getId() {
+ return "id";
+ }
+}
\ No newline at end of file
--- /dev/null
+public aspect ReturnTypeTest {
+ private interface Test {
+ Object getId();
+ int hashCode();
+ }
+
+ public int Test.hashCode() {
+ return getId().hashCode();
+ }
+
+ declare parents : ReturnTypeTester implements Test;
+}
--- /dev/null
+import java.util.HashSet;
+import java.util.Set;
+
+public class ReturnTypeTester {
+ static Set<ReturnTypeTester> set = new HashSet<ReturnTypeTester>();
+ static {
+ ReturnTypeTester tester = new ReturnTypeTester();
+ set.add(tester);
+ }
+
+ public String getId() {
+ return "id";
+ }
+
+ public static void main(String []argv) {
+ ReturnTypeTester rtt = new ReturnTypeTester();
+ System.err.println("xxx");
+ rtt.hashCode();
+ System.err.println("yyy");
+ rtt.getId();
+ System.err.println("zzz");
+ }
+}