summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2011-04-13 16:15:43 +0000
committerIulian Dragos <jaguarul@gmail.com>2011-04-13 16:15:43 +0000
commit9b5cb18dbd2d3e87def5da47ae76adb2e776487e (patch)
treeb43e9c909ceec9a21fbd7e0c4a3344d0209e6a9f /test
parent185d5b50fdcebb7ab5e4f871ca35c0ae1fad9dce (diff)
downloadscala-9b5cb18dbd2d3e87def5da47ae76adb2e776487e.tar.gz
scala-9b5cb18dbd2d3e87def5da47ae76adb2e776487e.tar.bz2
scala-9b5cb18dbd2d3e87def5da47ae76adb2e776487e.zip
Closes #4283. no review.
Diffstat (limited to 'test')
-rw-r--r--test/files/jvm/ticket4283/AbstractFoo.java5
-rw-r--r--test/files/jvm/ticket4283/ScalaBipp.scala5
-rw-r--r--test/files/jvm/ticket4283/Test.scala4
3 files changed, 14 insertions, 0 deletions
diff --git a/test/files/jvm/ticket4283/AbstractFoo.java b/test/files/jvm/ticket4283/AbstractFoo.java
new file mode 100644
index 0000000000..74f3827fe3
--- /dev/null
+++ b/test/files/jvm/ticket4283/AbstractFoo.java
@@ -0,0 +1,5 @@
+package test;
+
+/* package private */ class AbstractFoo {
+ public int t;
+}
diff --git a/test/files/jvm/ticket4283/ScalaBipp.scala b/test/files/jvm/ticket4283/ScalaBipp.scala
new file mode 100644
index 0000000000..36dea9f4de
--- /dev/null
+++ b/test/files/jvm/ticket4283/ScalaBipp.scala
@@ -0,0 +1,5 @@
+package test
+
+class ScalaBipp extends AbstractFoo {
+ def make: Option[ScalaBipp] = Option(this)
+}
diff --git a/test/files/jvm/ticket4283/Test.scala b/test/files/jvm/ticket4283/Test.scala
new file mode 100644
index 0000000000..9bbfaab928
--- /dev/null
+++ b/test/files/jvm/ticket4283/Test.scala
@@ -0,0 +1,4 @@
+
+object Test extends App {
+ val x = (new test.ScalaBipp).make.get.t // java.lang.IllegalAccessError: tried to access class test.AbstractFoo from class other.IllegalAccess$
+}