From 15fecdc78e66bb93ff0db9f4cdcf50f9c85fc190 Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Tue, 27 Apr 2010 14:04:02 +0000 Subject: fixed #3349 : method symbol cached too aggressi... fixed #3349 : method symbol cached too aggressively cooking raw types changes a symbol's info, but the change was masked by caching in MethodSymbol review by odersky --- test/files/pos/t3349/AbstractTupleSet.java | 9 +++++++++ test/files/pos/t3349/Table.java | 9 +++++++++ test/files/pos/t3349/Test.scala | 5 +++++ test/files/pos/t3349/TupleSet.java | 4 ++++ 4 files changed, 27 insertions(+) create mode 100644 test/files/pos/t3349/AbstractTupleSet.java create mode 100644 test/files/pos/t3349/Table.java create mode 100644 test/files/pos/t3349/Test.scala create mode 100644 test/files/pos/t3349/TupleSet.java (limited to 'test/files') diff --git a/test/files/pos/t3349/AbstractTupleSet.java b/test/files/pos/t3349/AbstractTupleSet.java new file mode 100644 index 0000000000..38e4743ef4 --- /dev/null +++ b/test/files/pos/t3349/AbstractTupleSet.java @@ -0,0 +1,9 @@ +public abstract class AbstractTupleSet implements TupleSet { + public void addColumn(String name, Class type) { + throw new UnsupportedOperationException(); + } + + public void addColumn(String name, String expr) { + throw new UnsupportedOperationException(); + } +} diff --git a/test/files/pos/t3349/Table.java b/test/files/pos/t3349/Table.java new file mode 100644 index 0000000000..1609367623 --- /dev/null +++ b/test/files/pos/t3349/Table.java @@ -0,0 +1,9 @@ +public class Table extends AbstractTupleSet { + public void addColumn(String name, Class type) { + throw new UnsupportedOperationException(); + } + + public void addColumn(String name, String expr) { + throw new UnsupportedOperationException(); + } +} \ No newline at end of file diff --git a/test/files/pos/t3349/Test.scala b/test/files/pos/t3349/Test.scala new file mode 100644 index 0000000000..8174e4c4f8 --- /dev/null +++ b/test/files/pos/t3349/Test.scala @@ -0,0 +1,5 @@ +object Test { + val label = "name" + val table: Table = error("") + table.addColumn( label, label.getClass ) +} \ No newline at end of file diff --git a/test/files/pos/t3349/TupleSet.java b/test/files/pos/t3349/TupleSet.java new file mode 100644 index 0000000000..14a073a950 --- /dev/null +++ b/test/files/pos/t3349/TupleSet.java @@ -0,0 +1,4 @@ +public interface TupleSet { + public void addColumn(String name, Class type); + public void addColumn(String name, String expr); +} \ No newline at end of file -- cgit v1.2.3