From bce950b70a310ff4614807aa2f0904a826b6b30a Mon Sep 17 00:00:00 2001 From: "Brian P. Hinz" Date: Mon, 13 Nov 2017 18:33:40 -0500 Subject: [PATCH] Raise minimum supported Java version to 7 Changes to keyboard handling require methods from the KeyEvent class that were not introduced until Java 7. --- BUILDING.txt | 2 +- java/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BUILDING.txt b/BUILDING.txt index 94498108..86fb45d6 100644 --- a/BUILDING.txt +++ b/BUILDING.txt @@ -57,7 +57,7 @@ Build Requirements (Windows) Build Requirements (Java) ========================= --- Sun/Oracle JDK v5 or later or OpenJDK +-- Sun/Oracle JDK 1.7 or later or OpenJDK 7 or later -- See "Building Java Support" below. diff --git a/java/CMakeLists.txt b/java/CMakeLists.txt index ecf86b07..80e0dd26 100644 --- a/java/CMakeLists.txt +++ b/java/CMakeLists.txt @@ -9,7 +9,7 @@ find_package(Java) set(DATA_DIR "${CMAKE_INSTALL_PREFIX}/share") -set(DEFAULT_JAVACFLAGS "-source 1.6 -target 1.6 -Xlint:all,-serial,-cast,-unchecked,-fallthrough,-dep-ann,-deprecation,-rawtypes") +set(DEFAULT_JAVACFLAGS "-source 7 -target 7 -Xlint:all,-serial,-cast,-unchecked,-fallthrough,-dep-ann,-deprecation,-rawtypes") set(JAVACFLAGS ${DEFAULT_JAVACFLAGS} CACHE STRING "Java compiler flags (Default: ${DEFAULT_JAVACFLAGS})") message(STATUS "Java compiler flags = ${JAVACFLAGS}") -- 2.39.5