summaryrefslogtreecommitdiff
path: root/test/files/jvm/t4283
diff options
context:
space:
mode:
authorSimon Ochsenreither <simon@ochsenreither.de>2012-10-08 03:45:26 +0200
committerSimon Ochsenreither <simon@ochsenreither.de>2012-10-12 17:18:42 +0200
commit18c6d58a5dc994ce19b0419c7c2dce460acecbdd (patch)
treeb2a909bdca9e376a636907aca821435d5b101f8b /test/files/jvm/t4283
parent3b73e0dd101aade6478517016df80975e6b996bd (diff)
downloadscala-18c6d58a5dc994ce19b0419c7c2dce460acecbdd.tar.gz
scala-18c6d58a5dc994ce19b0419c7c2dce460acecbdd.tar.bz2
scala-18c6d58a5dc994ce19b0419c7c2dce460acecbdd.zip
SI-6388 Remove Application
Diffstat (limited to 'test/files/jvm/t4283')
-rw-r--r--test/files/jvm/t4283/AbstractFoo.java5
-rw-r--r--test/files/jvm/t4283/ScalaBipp.scala5
-rw-r--r--test/files/jvm/t4283/Test.scala4
3 files changed, 14 insertions, 0 deletions
diff --git a/test/files/jvm/t4283/AbstractFoo.java b/test/files/jvm/t4283/AbstractFoo.java
new file mode 100644
index 0000000000..74f3827fe3
--- /dev/null
+++ b/test/files/jvm/t4283/AbstractFoo.java
@@ -0,0 +1,5 @@
+package test;
+
+/* package private */ class AbstractFoo {
+ public int t;
+}
diff --git a/test/files/jvm/t4283/ScalaBipp.scala b/test/files/jvm/t4283/ScalaBipp.scala
new file mode 100644
index 0000000000..36dea9f4de
--- /dev/null
+++ b/test/files/jvm/t4283/ScalaBipp.scala
@@ -0,0 +1,5 @@
+package test
+
+class ScalaBipp extends AbstractFoo {
+ def make: Option[ScalaBipp] = Option(this)
+}
diff --git a/test/files/jvm/t4283/Test.scala b/test/files/jvm/t4283/Test.scala
new file mode 100644
index 0000000000..9bbfaab928
--- /dev/null
+++ b/test/files/jvm/t4283/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$
+}