summaryrefslogtreecommitdiff
path: root/test/files/pos/t6245
diff options
context:
space:
mode:
authoramin <nada.amin@epfl.ch>2012-09-11 15:09:03 +0200
committeramin <nada.amin@epfl.ch>2012-09-13 21:13:30 +0200
commite498fac7fdbda3187a2a4fffcdf7fa4f9ddb7ac8 (patch)
tree869c6a61906d00833e9c1093e221f40f2681b8e3 /test/files/pos/t6245
parent76d4e9a8071f9e102106696664376b7f70622582 (diff)
downloadscala-e498fac7fdbda3187a2a4fffcdf7fa4f9ddb7ac8.tar.gz
scala-e498fac7fdbda3187a2a4fffcdf7fa4f9ddb7ac8.tar.bz2
scala-e498fac7fdbda3187a2a4fffcdf7fa4f9ddb7ac8.zip
Fix for SI-6245 with workaround for SI-2296.
protected/super accessor issue: Don't subvert the creation of the standard protected accessor with the java interop accessor. For SI-2296, the compiler emits an error instead of causing an illegal access error at runtime.
Diffstat (limited to 'test/files/pos/t6245')
-rw-r--r--test/files/pos/t6245/Base.java5
-rw-r--r--test/files/pos/t6245/Foo.scala9
-rw-r--r--test/files/pos/t6245/Vis.java3
3 files changed, 17 insertions, 0 deletions
diff --git a/test/files/pos/t6245/Base.java b/test/files/pos/t6245/Base.java
new file mode 100644
index 0000000000..651ea08bf2
--- /dev/null
+++ b/test/files/pos/t6245/Base.java
@@ -0,0 +1,5 @@
+package t1;
+
+public class Base {
+ protected Vis inner;
+}
diff --git a/test/files/pos/t6245/Foo.scala b/test/files/pos/t6245/Foo.scala
new file mode 100644
index 0000000000..f5f997fbff
--- /dev/null
+++ b/test/files/pos/t6245/Foo.scala
@@ -0,0 +1,9 @@
+import t1.Vis
+
+abstract class Foo extends t1.Base {
+ trait Nested {
+ def crash() {
+ inner
+ }
+ }
+}
diff --git a/test/files/pos/t6245/Vis.java b/test/files/pos/t6245/Vis.java
new file mode 100644
index 0000000000..4267f4e40b
--- /dev/null
+++ b/test/files/pos/t6245/Vis.java
@@ -0,0 +1,3 @@
+package t1;
+
+public class Vis { }