Build fails using Java 1.8 with Ant < 1.9
Client: Java
Patch: Adinata <mail.dieend@gmail.com>
This closes #1060
diff --git a/tutorial/java/build.xml b/tutorial/java/build.xml
index 7638d5b..c895ea9 100644
--- a/tutorial/java/build.xml
+++ b/tutorial/java/build.xml
@@ -50,8 +50,8 @@
</target>
<target name="compile" depends="init, generate">
- <javac includeantruntime="false" srcdir="${gen}" destdir="${build}" classpathref="libs.classpath" />
- <javac includeantruntime="false" srcdir="${src}" destdir="${build}" classpathref="build.classpath" />
+ <javac compiler="modern" includeantruntime="false" srcdir="${gen}" destdir="${build}" classpathref="libs.classpath" />
+ <javac compiler="modern" includeantruntime="false" srcdir="${src}" destdir="${build}" classpathref="build.classpath" />
</target>
<target name="test" depends="tutorial" />