1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

www/helma: fix build with OpenJDK8

PR:		203143
Approved by:	decke (maintainer)
This commit is contained in:
Steve Wills 2015-10-01 16:10:05 +00:00
parent ee15af0df7
commit ab05c6926b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=398366
3 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,15 @@
--- src/helma/framework/RequestTrans.java.orig 2015-09-16 00:39:16 UTC
+++ src/helma/framework/RequestTrans.java
@@ -602,10 +602,10 @@ public class RequestTrans implements Ser
StringTokenizer tok;
if (auth.startsWith("Basic ")) {
- tok = new StringTokenizer(new String(Base64.decode((auth.substring(6)).toCharArray())),
+ tok = new StringTokenizer(new String(helma.util.Base64.decode((auth.substring(6)).toCharArray())),
":");
} else {
- tok = new StringTokenizer(new String(Base64.decode(auth.toCharArray())), ":");
+ tok = new StringTokenizer(new String(helma.util.Base64.decode(auth.toCharArray())), ":");
}
try {

View File

@ -0,0 +1,27 @@
--- src/helma/framework/ResponseTrans.java.orig 2015-09-16 00:39:16 UTC
+++ src/helma/framework/ResponseTrans.java
@@ -714,7 +714,7 @@ public final class ResponseTrans extends
// if (contentType != null)
// digest.update (contentType.getBytes());
byte[] b = digest.digest(response);
- etag = "\"" + new String(Base64.encode(b)) + "\"";
+ etag = "\"" + new String(helma.util.Base64.encode(b)) + "\"";
// only set response to 304 not modified if no cookies were set
if (reqtrans.hasETag(etag) && countCookies() == 0) {
response = new byte[0];
@@ -891,7 +891,7 @@ public final class ResponseTrans extends
// generation sensitive to changes in the app
byte[] b = digest.digest(MD5Encoder.toBytes(app.getChecksum()));
- setETag(new String(Base64.encode(b)));
+ setETag(new String(helma.util.Base64.encode(b)));
}
/**
@@ -1164,4 +1164,4 @@ public final class ResponseTrans extends
public void setRealm(String realm) {
this.realm = realm;
}
-}
\ No newline at end of file
+}

View File

@ -0,0 +1,11 @@
--- src/helma/servlet/AbstractServletClient.java.orig 2015-09-16 00:39:16 UTC
+++ src/helma/servlet/AbstractServletClient.java
@@ -510,7 +510,7 @@ public abstract class AbstractServletCli
checksum[i] = (byte) (n);
n >>>= 8;
}
- String etag = "\"" + new String(Base64.encode(checksum)) + "\"";
+ String etag = "\"" + new String(helma.util.Base64.encode(checksum)) + "\"";
res.setHeader("ETag", etag);
String etagHeader = req.getHeader("If-None-Match");
if (etagHeader != null) {