This is an automated email from the git hooks/post-receive script. New commit to branch develop-2.x in repository jaxx. See https://gitlab.nuiton.org/nuiton/jaxx.git commit 11d547bddd11948a6ef493f4dffeecc46503e85b Author: Eric Chatellier <chatellier@codelutin.com> Date: Wed Jun 3 11:13:10 2020 +0200 fixes #1907: Add check to only generate code on Java 9+ jvm --- jaxx-compiler/src/main/java/jaxx/compiler/JAXXFactory.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/jaxx-compiler/src/main/java/jaxx/compiler/JAXXFactory.java b/jaxx-compiler/src/main/java/jaxx/compiler/JAXXFactory.java index 9bb73d8b..5d333591 100644 --- a/jaxx-compiler/src/main/java/jaxx/compiler/JAXXFactory.java +++ b/jaxx-compiler/src/main/java/jaxx/compiler/JAXXFactory.java @@ -23,6 +23,8 @@ package jaxx.compiler; import jaxx.compiler.spi.Initializer; import jaxx.compiler.tags.TagManager; +import org.apache.commons.lang3.JavaVersion; +import org.apache.commons.lang3.SystemUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -80,6 +82,13 @@ public class JAXXFactory { */ public static JAXXEngine newEngine(File basedir, String... relativePaths) { checkConfiguration(); + + // since 2.45, dt.jar has been removed and Swing Bean Info are only available on annoted swing classes on Java 9+ + // compiler need a Java 9+ JVM even if generated code can run on any JVM + if (!SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_9)) { + throw new IllegalStateException("Since Jaxx 2.45, you need a Java 9+ JVM to 'generate' code !"); + } + if (engine != null) { engine.reset(true); } -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.