From eb3029433e0daaa0254c328dcc07826c84e1ec72 Mon Sep 17 00:00:00 2001
From: brutzman <brutzman@DESKTOP-2S09UKA>
Date: Wed, 14 Aug 2019 02:12:22 -0700
Subject: [PATCH] avoid bootclasspath warnings under java12

---
 examples/nbproject/build-impl.xml | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/examples/nbproject/build-impl.xml b/examples/nbproject/build-impl.xml
index 655ff1a00d..a597975468 100644
--- a/examples/nbproject/build-impl.xml
+++ b/examples/nbproject/build-impl.xml
@@ -379,7 +379,11 @@ is divided into following sections:
                     <compilerarg value="-s"/>
                     <compilerarg path="@{apgeneratedsrcdir}"/>
                     <compilerarg line="${ap.proc.none.internal}"/>
-                    <customize/>
+                    <customize/>>
+                    <compilerarg value="-Xlint:all"/>
+                    <!-- http://ant.apache.org/manual/Tasks/javac.html#bootstrap -->
+                    <!-- https://stackoverflow.com/questions/4134803/ant-passing-compilerarg-into-javac -->
+                    <compilerarg value="-Xbootclasspath/p:${toString:lib.path.ref}"/>
                 </javac>
             </sequential>
         </macrodef>
@@ -423,6 +427,9 @@ is divided into following sections:
                     <compilerarg path="@{apgeneratedsrcdir}"/>
                     <compilerarg line="${ap.proc.none.internal}"/>
                     <customize/>
+                    <!-- http://ant.apache.org/manual/Tasks/javac.html#bootstrap -->
+                    <!-- https://stackoverflow.com/questions/4134803/ant-passing-compilerarg-into-javac -->
+                    <compilerarg value="-Xbootclasspath/p:${toString:lib.path.ref}"/>
                 </javac>
             </sequential>
         </macrodef>
@@ -458,6 +465,9 @@ is divided into following sections:
                     <compilerarg line="${javac.profile.cmd.line.arg}"/>
                     <compilerarg line="${javac.compilerargs}"/>
                     <customize/>
+                    <!-- http://ant.apache.org/manual/Tasks/javac.html#bootstrap -->
+                    <!-- https://stackoverflow.com/questions/4134803/ant-passing-compilerarg-into-javac -->
+                    <compilerarg value="-Xbootclasspath/p:${toString:lib.path.ref}"/>
                 </javac>
             </sequential>
         </macrodef>
-- 
GitLab