This is an automated email from the ASF dual-hosted git repository. fhanik pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new 73288c6 Allow detection of Graal via reflection or system property 73288c6 is described below commit 73288c6b3c979777054e4fc5baf0163c84bb2ac9 Author: Filip Hanik <fha...@pivotal.io> AuthorDate: Thu Jul 23 15:41:16 2020 -0700 Allow detection of Graal via reflection or system property --- java/org/apache/jasper/runtime/JspRuntimeLibrary.java | 2 +- java/org/apache/naming/NamingContext.java | 2 +- java/org/apache/tomcat/util/compat/GraalCompat.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java/org/apache/jasper/runtime/JspRuntimeLibrary.java b/java/org/apache/jasper/runtime/JspRuntimeLibrary.java index c0a7a63..3a0cc1b 100644 --- a/java/org/apache/jasper/runtime/JspRuntimeLibrary.java +++ b/java/org/apache/jasper/runtime/JspRuntimeLibrary.java @@ -69,7 +69,7 @@ public class JspRuntimeLibrary { } catch (ReflectiveOperationException | IllegalArgumentException e) { // Should never happen } - GRAAL = result; + GRAAL = result || System.getProperty("org.graalvm.nativeimage.imagecode") != null; } /** diff --git a/java/org/apache/naming/NamingContext.java b/java/org/apache/naming/NamingContext.java index 0471279..a064421 100644 --- a/java/org/apache/naming/NamingContext.java +++ b/java/org/apache/naming/NamingContext.java @@ -804,7 +804,7 @@ public class NamingContext implements Context { } catch (ReflectiveOperationException | IllegalArgumentException e) { // Should never happen } - GRAAL = result; + GRAAL = result || System.getProperty("org.graalvm.nativeimage.imagecode") != null; } /** diff --git a/java/org/apache/tomcat/util/compat/GraalCompat.java b/java/org/apache/tomcat/util/compat/GraalCompat.java index 9fb835a..6187eb6 100644 --- a/java/org/apache/tomcat/util/compat/GraalCompat.java +++ b/java/org/apache/tomcat/util/compat/GraalCompat.java @@ -32,7 +32,7 @@ class GraalCompat extends Jre9Compat { } catch (ReflectiveOperationException | IllegalArgumentException e) { // Should never happen } - GRAAL = result; + GRAAL = result || System.getProperty("org.graalvm.nativeimage.imagecode") != null; } static boolean isSupported() { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org