Skip to content

Commit 7361d88

Browse files
authored
Document scala java compatibility (#167)
1 parent 935284f commit 7361d88

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ Also, each example states its exact requirements at the very top.
188188
189189
<a name="requirements-java"/>
190190
191-
## Java 8
191+
## Java 8+
192192
193-
Some code examples require Java 8, primarily because of the usage of
193+
Some code examples require Java 8+, primarily because of the usage of
194194
[lambda expressions](https://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html).
195195
196196
IntelliJ IDEA users:
@@ -211,6 +211,8 @@ IntelliJ IDEA users:
211211
If you want to experiment with the Scala examples in this repository, you need a version of Scala that supports Java 8
212212
and SAM / Java lambda (e.g. Scala 2.11 with `-Xexperimental` compiler flag, or 2.12).
213213
214+
If you are compiling with Java 9+, you'll need to have Scala version 2.12+ to be compatible with the Java version.
215+
214216
215217
<a name="packaging-and-running"/>
216218

0 commit comments

Comments
 (0)