Skip to content

Commit 6bd3b84

Browse files
author
Stefan Botez
committed
Update glibc version in documentation
1 parent fe1b136 commit 6bd3b84

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

aws-lambda-java-runtime-interface-client/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Choose a preferred base image. The Runtime Interface Client is tested on Amazon
1515

1616
* built for x86_64
1717
* contains Java >= 8
18-
* contains glibc >= 2.12 or musl
18+
* contains glibc >= 2.17 or musl
1919

2020
### Example
2121

aws-lambda-java-runtime-interface-client/src/main/jni/Dockerfile.glibc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# we use centos 7 to build against glibc 2.12
1+
# we use centos 7 to build against glibc 2.17
22
FROM centos:7
33

44
# aws-lambda-cpp requires cmake3, it's available in EPEL

aws-lambda-java-runtime-interface-client/src/test/java/com/amazonaws/services/lambda/runtime/api/client/CustomerClassLoaderTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,10 @@ public void customerClassLoaderFunction() throws IOException {
116116
res);
117117
} catch(Throwable t) {
118118
// this system property is the name of the charset used when encoding/decoding file paths
119-
// exception is expected if it is not set to a UTF variant
120-
if (!System.getProperty("sun.jnu.encoding").toLowerCase().contains("utf")){
119+
// exception is expected if it is not set to a UTF variant or not set at all
120+
String systemEncoding = System.getProperty("sun.jnu.encoding");
121+
122+
if (systemEncoding != null && !systemEncoding.toLowerCase().contains("utf")){
121123
Assertions.assertTrue(t.getMessage().contains("Malformed input or input contains unmappable characters"));
122124
}
123125
else {

0 commit comments

Comments
 (0)