diff --git a/glassfish-jsp-port-to-servlet-4.0.patch b/glassfish-jsp-port-to-servlet-4.0.patch new file mode 100644 index 0000000..11c11e9 --- /dev/null +++ b/glassfish-jsp-port-to-servlet-4.0.patch @@ -0,0 +1,35 @@ +--- javax.servlet.jsp-2.3.4/src/main/java/org/apache/jasper/servlet/JspCServletContext.java 2024-11-11 17:17:23.900839969 +0100 ++++ javax.servlet.jsp-2.3.4/src/main/java/org/apache/jasper/servlet/JspCServletContext.java 2024-11-11 17:20:07.928605001 +0100 +@@ -888,4 +888,32 @@ + public String getVirtualServerName() { + throw new UnsupportedOperationException("Not implemented yet"); + } ++ ++ public void setResponseCharacterEncoding(String charset) { ++ throw new UnsupportedOperationException("Not implemented yet"); ++ } ++ ++ public String getResponseCharacterEncoding() { ++ throw new UnsupportedOperationException("Not implemented yet"); ++ } ++ ++ public void setRequestCharacterEncoding(String charset) { ++ throw new UnsupportedOperationException("Not implemented yet"); ++ } ++ ++ public String getRequestCharacterEncoding() { ++ throw new UnsupportedOperationException("Not implemented yet"); ++ } ++ ++ public void setSessionTimeout(int sessionTimeout) { ++ throw new UnsupportedOperationException("Not implemented yet"); ++ } ++ ++ public int getSessionTimeout() { ++ throw new UnsupportedOperationException("Not implemented yet"); ++ } ++ ++ public ServletRegistration.Dynamic addJspFile(String servletName, String jspFile) { ++ throw new UnsupportedOperationException("Not implemented yet"); ++ } + } diff --git a/glassfish-jsp.changes b/glassfish-jsp.changes index b4c6312..8142e99 100644 --- a/glassfish-jsp.changes +++ b/glassfish-jsp.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Nov 11 16:35:49 UTC 2024 - Fridrich Strba + +- Added patch: + * glassfish-jsp-port-to-servlet-4.0.patch + + port to javax.servlet-api 4.0 + ------------------------------------------------------------------- Wed Feb 21 10:43:53 UTC 2024 - Gus Kenion diff --git a/glassfish-jsp.spec b/glassfish-jsp.spec index e9ee2b9..2f03d30 100644 --- a/glassfish-jsp.spec +++ b/glassfish-jsp.spec @@ -30,7 +30,8 @@ Source1: https://raw.githubusercontent.com/javaee/javaee-jsp-api/%{artifa Source2: http://www.apache.org/licenses/LICENSE-2.0 Patch0: %{name}-build-eclipse-compilers.patch Patch1: %{name}-port-to-servlet-3.1.patch -Patch2: Tag.patch +Patch2: %{name}-port-to-servlet-4.0.patch +Patch3: Tag.patch BuildRequires: fdupes BuildRequires: java-devel >= 1.8 BuildRequires: maven-local @@ -67,10 +68,7 @@ Group: Documentation/HTML %{summary}. %prep -%setup -q -n %{artifactId}-%{version} -%patch -P 0 -p1 -%patch -P 1 -p1 -%patch -P 2 -p1 +%autosetup -n %{artifactId}-%{version} -p1 %pom_add_dep org.eclipse.jdt:core::provided %pom_add_dep org.apache.ant:ant::provided