You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by ma...@apache.org on 2020/01/03 18:35:37 UTC
[netbeans] branch master updated: Building on JDK9+ failes caused
by -Werror
This is an automated email from the ASF dual-hosted git repository.
matthiasblaesing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new c6379a4 Building on JDK9+ failes caused by -Werror
new 378d7b8 Merge pull request #1830 from matthiasblaesing/build-jdk9+
c6379a4 is described below
commit c6379a413806fad6c48ee8071b9b3b3bbc502794
Author: Matthias Bläsing <mb...@doppel-helix.eu>
AuthorDate: Sun Dec 29 20:11:12 2019 +0100
Building on JDK9+ failes caused by -Werror
The two commits:
- NETBEANS-3559 Corrected compiler warnings in Bootstrap project.
https://github.com/apache/netbeans/commit/1f0916ad1a923
- NETBEANS-3534 Corrected compiler warnings in Classfile Reader project
https://github.com/apache/netbeans/commit/0eb938809158b7515b404d834966768e7a3e63c0
introduced the `-Werror` javac argument. The argument causes the build
to fail on JDK9+:
-do-compile:
[nb-javac] Compiling 40 source files to
/home/matthias/src/netbeans/platform/o.n.bootstrap/build/classes
[repeat] warning: [options] bootstrap class path not set in
conjunction with -source 8
[repeat] error: warnings found and -Werror specified
[repeat] error: warnings found and -Werror specified
[repeat] error: warnings found and -Werror specified
[repeat] error: warnings found and -Werror specified
[repeat] 4 errors
[repeat] 1 warning
[nbmerge] Failed to build target: all-o.n.bootstrap
---
java/classfile/nbproject/project.properties | 2 +-
platform/o.n.bootstrap/nbproject/project.properties | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/java/classfile/nbproject/project.properties b/java/classfile/nbproject/project.properties
index c1794dd..b6c758f 100644
--- a/java/classfile/nbproject/project.properties
+++ b/java/classfile/nbproject/project.properties
@@ -16,7 +16,7 @@
# under the License.
is.autoload=true
-javac.compilerargs=-Xlint:all -Xlint:-serial -Werror
+javac.compilerargs=-Xlint:all -Xlint:-serial
javac.source=1.8
javadoc.arch=${basedir}/arch.xml
javadoc.apichanges=${basedir}/apichanges.xml
diff --git a/platform/o.n.bootstrap/nbproject/project.properties b/platform/o.n.bootstrap/nbproject/project.properties
index f30c9e4..e10ee5b 100644
--- a/platform/o.n.bootstrap/nbproject/project.properties
+++ b/platform/o.n.bootstrap/nbproject/project.properties
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-javac.compilerargs=-Xlint:all -Xlint:-serial -Xlint:-processing -Werror
+javac.compilerargs=-Xlint:all -Xlint:-serial -Xlint:-processing
javac.source=1.8
module.jar.dir=lib
module.jar.basename=boot.jar
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists