summaryrefslogtreecommitdiff
path: root/test/files/pos/t3349
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2010-04-27 14:04:02 +0000
committerAdriaan Moors <adriaan.moors@epfl.ch>2010-04-27 14:04:02 +0000
commit15fecdc78e66bb93ff0db9f4cdcf50f9c85fc190 (patch)
treef56da78b70c319702aab21994213c38e3dedc593 /test/files/pos/t3349
parentfa715fdd66f444d756ffe91417ac0937f7de6592 (diff)
downloadscala-15fecdc78e66bb93ff0db9f4cdcf50f9c85fc190.tar.gz
scala-15fecdc78e66bb93ff0db9f4cdcf50f9c85fc190.tar.bz2
scala-15fecdc78e66bb93ff0db9f4cdcf50f9c85fc190.zip
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
Diffstat (limited to 'test/files/pos/t3349')
-rw-r--r--test/files/pos/t3349/AbstractTupleSet.java9
-rw-r--r--test/files/pos/t3349/Table.java9
-rw-r--r--test/files/pos/t3349/Test.scala5
-rw-r--r--test/files/pos/t3349/TupleSet.java4
4 files changed, 27 insertions, 0 deletions
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