Ai
1 Star 0 Fork 5

李恬/groovy18

forked from src-openEuler/groovy18
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
groovy-servlet31.patch 1.45 KB
一键复制 编辑 原始数据 按行查看 历史
zhanghua 提交于 2020-08-25 16:19 +08:00 . package init
diff --git a/src/main/groovy/servlet/ServletBinding.java b/src/main/groovy/servlet/ServletBinding.java
index 127d343..9d37592 100644
--- a/src/main/groovy/servlet/ServletBinding.java
+++ b/src/main/groovy/servlet/ServletBinding.java
@@ -24,6 +24,7 @@ import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
+import javax.servlet.WriteListener;
import org.codehaus.groovy.GroovyBugError;
import org.codehaus.groovy.runtime.MethodClosure;
@@ -150,6 +151,13 @@ public class ServletBinding extends Binding {
public void write(byte[] b, int off, int len) throws IOException {
getResponseStream().write(b, off, len);
}
+ public void setWriteListener(WriteListener writeListener) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public boolean isReady() {
+ throw new UnsupportedOperationException("not implemented");
+ }
};
}
private PrintWriter getResponseWriter() {
@@ -359,6 +367,6 @@ public class ServletBinding extends Binding {
public void redirect(String location) throws IOException {
HttpServletResponse response = (HttpServletResponse) super.getVariable("response");
response.sendRedirect(location);
- }
+ }
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/litian_code/groovy18.git
git@gitee.com:litian_code/groovy18.git
litian_code
groovy18
groovy18
master

搜索帮助