Skip to content

Commit

Permalink
Close-suppressing Connection proxy exposes target isClosed() state
Browse files Browse the repository at this point in the history
Closes gh-24853
  • Loading branch information
jhoeller committed Apr 3, 2020
1 parent 56e7d73 commit a33b7bb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -322,7 +322,7 @@ else if (method.getName().equals("close")) {
return null;
}
else if (method.getName().equals("isClosed")) {
return false;
return this.target.isClosed();
}
else if (method.getName().equals("getTargetConnection")) {
// Handle getTargetConnection method: return underlying Connection.
Expand Down

0 comments on commit a33b7bb

Please sign in to comment.