summaryrefslogtreecommitdiff
path: root/test/pending
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2012-06-10 23:38:39 +0200
committerJason Zaugg <jzaugg@gmail.com>2012-06-11 00:07:24 +0200
commit617706644139d5731b10b3c77c647e3b70aa07b3 (patch)
tree86c90bc0192870477747adf38ff3f6daab57af2f /test/pending
parent30ef129f322687cbc885d344ca73dd4877fbedd6 (diff)
downloadscala-617706644139d5731b10b3c77c647e3b70aa07b3.tar.gz
scala-617706644139d5731b10b3c77c647e3b70aa07b3.tar.bz2
scala-617706644139d5731b10b3c77c647e3b70aa07b3.zip
SI-5162 Exclude super.foo from the erasure cast of SI-4283
If the target method is defined in Java, treat the super reference as an error, otherwise allow it in the knowledge that Scala loosens the access restrictions on its generated classes. Moves the test for that bug out of pending-ville. It's sufficient to place Test in the empty package to exercise the right code paths.
Diffstat (limited to 'test/pending')
-rw-r--r--test/pending/run/t4283/AbstractFoo.java6
-rw-r--r--test/pending/run/t4283/IllegalAccess.scala17
-rw-r--r--test/pending/run/t4283/ScalaBipp.scala5
3 files changed, 0 insertions, 28 deletions
diff --git a/test/pending/run/t4283/AbstractFoo.java b/test/pending/run/t4283/AbstractFoo.java
deleted file mode 100644
index 0403271b74..0000000000
--- a/test/pending/run/t4283/AbstractFoo.java
+++ /dev/null
@@ -1,6 +0,0 @@
-package test;
-
-/* package private */ class AbstractFoo {
- public int t = 1;
- public int f() { return 2; }
-} \ No newline at end of file
diff --git a/test/pending/run/t4283/IllegalAccess.scala b/test/pending/run/t4283/IllegalAccess.scala
deleted file mode 100644
index 33039c9350..0000000000
--- a/test/pending/run/t4283/IllegalAccess.scala
+++ /dev/null
@@ -1,17 +0,0 @@
-package other
-
-object IllegalAccess {
- def main(args: Array[String]) {
- val x = (new test.ScalaBipp).make.get.asInstanceOf[test.ScalaBipp].f()
- println(x)
- val y = (new test.ScalaBipp).make.get.f()
- println(y)
- val u = (new test.ScalaBipp).make.get.asInstanceOf[test.ScalaBipp].t
- println(u)
- val v = (new test.ScalaBipp).make.get.t
- println(v)
- val sb: test.ScalaBipp = (new test.ScalaBipp).make.get
- val z = sb.t
- println(z)
- }
-}
diff --git a/test/pending/run/t4283/ScalaBipp.scala b/test/pending/run/t4283/ScalaBipp.scala
deleted file mode 100644
index 36dea9f4de..0000000000
--- a/test/pending/run/t4283/ScalaBipp.scala
+++ /dev/null
@@ -1,5 +0,0 @@
-package test
-
-class ScalaBipp extends AbstractFoo {
- def make: Option[ScalaBipp] = Option(this)
-}