This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new 6f934c7 Make it possible to use Http11Nio2Protocol in GraalVM native
image
6f934c7 is described below
commit 6f934c7f6e204321f5add7e66a37036f00f80075
Author: Martin Tzvetanov Grigorov <[email protected]>
AuthorDate: Wed Oct 21 10:19:44 2020 +0300
Make it possible to use Http11Nio2Protocol in GraalVM native image
---
res/graal/tomcat-embed-core/native-image/tomcat-reflection.json | 1 +
webapps/docs/changelog.xml | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/res/graal/tomcat-embed-core/native-image/tomcat-reflection.json
b/res/graal/tomcat-embed-core/native-image/tomcat-reflection.json
index ee96509..863ceef 100644
--- a/res/graal/tomcat-embed-core/native-image/tomcat-reflection.json
+++ b/res/graal/tomcat-embed-core/native-image/tomcat-reflection.json
@@ -41,6 +41,7 @@
{ "name":"org.apache.catalina.servlets.DefaultServlet",
"allDeclaredFields":true, "allDeclaredMethods":true },
{ "name":"org.apache.catalina.valves.ErrorReportValve", "methods" : [{"name":
"<init>","parameterTypes":[]}] },
{ "name":"org.apache.coyote.http11.Http11NioProtocol", "methods" : [{"name":
"<init>","parameterTypes":[]}] },
+{ "name":"org.apache.coyote.http11.Http11Nio2Protocol", "methods" : [{"name":
"<init>","parameterTypes":[]}] },
{ "name":"org.apache.coyote.http11.Http11AprProtocol",
"allDeclaredConstructors" : true, "allPublicConstructors" : true,
"allDeclaredMethods" : true, "allPublicMethods" : true},
{ "name":"org.apache.coyote.UpgradeProtocol" },
{ "name":"org.apache.coyote.Request",
"methods":[{"name":"<init>","parameterTypes":[] }] },
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 1f72a47..e64cc03 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -70,6 +70,10 @@
since <a
href="https://github.com/apache/tomcat/commit/3815b4951eb3acd30a0b77aafa75fbdb928d5782">
Fix unwanted JPMS dependency of embed-core on embed-jasper</a>.
(mgrigorov)
</fix>
+ <fix>
+ Add org.apache.coyote.http11.Http11Nio2Protocol to the list of classes
which could be instantiated
+ via reflection in GraalVM. (mgrigorov)
+ </fix>
<add>
Add <code>JsonErrorReportValve</code> that extends the
<code>ErrorReportValve</code> that returns response as JSON instead of
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]