diff options
author | Paul Phillips <paulp@improving.org> | 2010-12-01 10:26:52 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-12-01 10:26:52 +0000 |
commit | 4ff54d04484a391b6f9602c06f21b820ecfaf37d (patch) | |
tree | c46b452aa5e09fbc32a8ddca7b63f8136bfc2962 /test/files | |
parent | 46fba575f7f5bfbcbf4860deb297ec83cf99d9d0 (diff) | |
download | scala-4ff54d04484a391b6f9602c06f21b820ecfaf37d.tar.gz scala-4ff54d04484a391b6f9602c06f21b820ecfaf37d.tar.bz2 scala-4ff54d04484a391b6f9602c06f21b820ecfaf37d.zip |
Disabled test after failing to read linux's mind.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/bug2318.check | 2 | ||||
-rw-r--r-- | test/files/run/bug2318.scala | 38 |
2 files changed, 0 insertions, 40 deletions
diff --git a/test/files/run/bug2318.check b/test/files/run/bug2318.check deleted file mode 100644 index a486f1ac47..0000000000 --- a/test/files/run/bug2318.check +++ /dev/null @@ -1,2 +0,0 @@ -bar -bar diff --git a/test/files/run/bug2318.scala b/test/files/run/bug2318.scala deleted file mode 100644 index cb524471d6..0000000000 --- a/test/files/run/bug2318.scala +++ /dev/null @@ -1,38 +0,0 @@ -import java.security._ - -object Test { - trait Bar { def bar: Unit } - - object Mgr extends SecurityManager { - override def checkPermission(perm: Permission) = perm match { - case _: java.lang.RuntimePermission => () - case _: java.io.FilePermission => () - case x: java.security.AccessControlException if x.getName contains ".networkaddress." => () // generality ftw - case _ => super.checkPermission(perm) - } - } - - def bug1() = { - val p = Runtime.getRuntime().exec("ls"); - type Destroyable = { def destroy() : Unit } - def doDestroy( obj : Destroyable ) : Unit = obj.destroy(); - doDestroy( p ); - } - def bug2() = { - System.setSecurityManager(Mgr) - - val b = new Bar { def bar = println("bar") } - b.bar - - val structural = b.asInstanceOf[{ def bar: Unit }] - structural.bar - } - - def main(args: Array[String]) { - // figuring this will otherwise break on windows - try bug1() - catch { case _: java.io.IOException => () } - - bug2() - } -} |