diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2011-04-14 13:48:00 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2011-04-14 13:48:00 +0000 |
commit | 8707c9ecb3dfa8e3706c218ed8c780bbcb0b7217 (patch) | |
tree | 3afd758aba5d55c781d2d5495da3f151caf47b78 /test/files/jvm | |
parent | 0b18e29225e07a456416eb1cca0e38906b9bddc8 (diff) | |
download | scala-8707c9ecb3dfa8e3706c218ed8c780bbcb0b7217.tar.gz scala-8707c9ecb3dfa8e3706c218ed8c780bbcb0b7217.tar.bz2 scala-8707c9ecb3dfa8e3706c218ed8c780bbcb0b7217.zip |
This time, fixed #4283. no review.
Diffstat (limited to 'test/files/jvm')
-rw-r--r-- | test/files/jvm/ticket4283/AbstractFoo.java | 5 | ||||
-rw-r--r-- | test/files/jvm/ticket4283/ScalaBipp.scala | 5 | ||||
-rw-r--r-- | test/files/jvm/ticket4283/Test.scala | 4 |
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$ +} |