Author: pierre
Date: Sun Feb 25 06:20:19 2018
New Revision: 19870

Log:
Fix junit for building with java 9, and tag it

Modified:
   trunk/BOOK/general/prog/junit.xml

Modified: trunk/BOOK/general/prog/junit.xml
==============================================================================
--- trunk/BOOK/general/prog/junit.xml   Sun Feb 25 06:18:48 2018        (r19869)
+++ trunk/BOOK/general/prog/junit.xml   Sun Feb 25 06:20:19 2018        (r19870)
@@ -37,7 +37,7 @@
       test data, and test runners for running tests.
     </para>
 
-    &lfs81_checked;
+    &lfs82_checked;
 
     <bridgehead renderas="sect3">Package Information</bridgehead>
     <itemizedlist spacing="compact">
@@ -104,6 +104,15 @@
 <screen><userinput>sed -i '\@/docs/@a&lt;arg value="-Xdoclint:none"/&gt;' 
build.xml</userinput></screen>
 
     <para>
+      With <application>Java 9</application>, the minimum accepted code version
+      is 1.6. However, the build system passes <option>-source 1.5</option>,
+      while the junit code can perfectly be compiled for a Java 8 JVM. Change
+      that by issuing the following command:
+    </para>
+
+<screen><userinput>sed -i 's/1\.5/1.8/' build.xml</userinput></screen>
+
+    <para>
       Now place the required hamcrest jar files where needed and build the
       package:
     </para>
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to