Skip to content

Commit

Permalink
Merge pull request #487 from ibmruntimes/openj9
Browse files Browse the repository at this point in the history
Merge jdk-11.0.15+5 to the 0.32 release
  • Loading branch information
JasonFengJ9 committed Mar 14, 2022
2 parents 6efa16e + 8310bdf commit 6257c4d
Show file tree
Hide file tree
Showing 8 changed files with 455 additions and 146 deletions.
2 changes: 1 addition & 1 deletion closed/openjdk-tag.gmk
@@ -1 +1 @@
OPENJDK_TAG := jdk-11.0.15+4
OPENJDK_TAG := jdk-11.0.15+5
Expand Up @@ -65,7 +65,23 @@ public PooledConnection createPooledConnection(PoolCallback pcb)
connTimeout, readTimeout, trace, pcb);
}

public PooledConnection createPooledConnection(PoolCallback pcb, long timeout)
throws NamingException {
return new LdapClient(host, port, socketFactory,
guardedIntegerCast(timeout),
readTimeout, trace, pcb);
}

public String toString() {
return host + ":" + port;
}

private int guardedIntegerCast(long timeout) {
if (timeout < Integer.MIN_VALUE) {
return Integer.MIN_VALUE;
} else if (timeout > Integer.MAX_VALUE) {
return Integer.MAX_VALUE;
}
return (int) timeout;
}
}

0 comments on commit 6257c4d

Please sign in to comment.