diff options
author | Philipp Haller <hallerp@gmail.com> | 2008-12-23 10:21:53 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2008-12-23 10:21:53 +0000 |
commit | b49b09033b48bc5d2594545625237315b94bc4f6 (patch) | |
tree | 8d310e116945b189e6aac34dbf8fff1a6b17e1f3 | |
parent | 755317af6dc830e47d532bbdfb6867a2f40d0036 (diff) | |
download | scala-b49b09033b48bc5d2594545625237315b94bc4f6.tar.gz scala-b49b09033b48bc5d2594545625237315b94bc4f6.tar.bz2 scala-b49b09033b48bc5d2594545625237315b94bc4f6.zip |
Try to get rid of AbstractMethodError in hudson...
Try to get rid of AbstractMethodError in hudson build
-rw-r--r-- | src/partest/scala/tools/partest/nest/DirectRunner.scala | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/partest/scala/tools/partest/nest/DirectRunner.scala b/src/partest/scala/tools/partest/nest/DirectRunner.scala index af3d7bcd8a..c65b183f90 100644 --- a/src/partest/scala/tools/partest/nest/DirectRunner.scala +++ b/src/partest/scala/tools/partest/nest/DirectRunner.scala @@ -23,15 +23,17 @@ trait DirectRunner { (System.getProperty("scalatest.debug", "false") equals "true")) scala.actors.Debug.level = 3 - private val coreProp = try { - System.getProperty("actors.corePoolSize") - } catch { - case ace: java.security.AccessControlException => - null - } - if (coreProp == null) { - scala.actors.Debug.info("actors.corePoolSize not defined") - System.setProperty("actors.corePoolSize", "16") + { + val coreProp = try { + System.getProperty("actors.corePoolSize") + } catch { + case ace: java.security.AccessControlException => + null + } + if (coreProp == null) { + scala.actors.Debug.info("actors.corePoolSize not defined") + System.setProperty("actors.corePoolSize", "16") + } } def runTestsForFiles(kindFiles: List[File], kind: String): (Int, Int) = { |