From 711c0ff027719586917cd04a62a3c21f0740efdd Mon Sep 17 00:00:00 2001 From: Richard Imaoka Date: Wed, 7 Jun 2017 17:42:42 +0900 Subject: [PATCH] Move a warning on -optimize to CONTRIBUTING.md (Fixes #22932) (#23089) --- CONTRIBUTING.md | 5 +++++ akka-docs/src/main/paradox/scala/scala-compat.md | 11 +---------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 113dc5a0c1..2cd8b96f43 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -137,6 +137,11 @@ project akka-cluster multi-jvm:testOnly akka.cluster.SunnyWeather ``` +### Do not use `-optimize` Scala compiler flag + +Akka has not been compiled or tested with `-optimize` Scala compiler flag. (In sbt, you can specify compiler options in the `scalacOptions` key.) +Strange behavior has been reported by users that have tried it. + ## The `validatePullRequest` task The Akka build includes a special task called `validatePullRequest` which investigates the changes made as well as dirty diff --git a/akka-docs/src/main/paradox/scala/scala-compat.md b/akka-docs/src/main/paradox/scala/scala-compat.md index 2c242c1678..c67471ee38 100644 --- a/akka-docs/src/main/paradox/scala/scala-compat.md +++ b/akka-docs/src/main/paradox/scala/scala-compat.md @@ -25,13 +25,4 @@ We will only be able to seamlessly integrate all functional interfaces once we can rely on Scala 2.12 to provide full interoperability—this will mean that Scala users can directly implement Java Functional Interfaces using lambda syntax as well as that Java users can directly implement Scala functions using lambda -syntax. - -## Do not use -optimize Scala compiler flag - -@@@ warning - -Akka has not been compiled or tested with -optimize Scala compiler flag. -Strange behavior has been reported by users that have tried it. - -@@@ +syntax. \ No newline at end of file