You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/07/31 15:00:07 UTC
[commons-dbcp] branch release updated (747c07c -> 25ee5b8)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a change to branch release
in repository https://gitbox.apache.org/repos/asf/commons-dbcp.git.
from 747c07c Bump to next development version
add 8c4d4c1 Bump mockito-core from 3.5.11 to 3.5.13 (#66)
add caf4d0e Update mockito-core from 3.5.11 to 3.5.13 #66.
add 9324347 Bump actions/checkout from v2.3.2 to v2.3.3 (#65)
add 6718af7 Update actions/checkout from v2.3.2 to v2.3.3 #65.
add 21d3d2b Fix next release and date.
add a1bf491 Fix up codehaus URL
add d134a27 Regenerate page to fix older hash links
add 3397f9d Update commons-pool2 from 2.8.1 to 2.9.0.
add 84b1449 Bump actions/setup-java from v1.4.2 to v1.4.3 (#69)
add 853cbd5 Bump actions/setup-java from v1.4.2 to v1.4.3 #69.
add 9ccf251 Fix version.
add 86c645f Format.
add e3d2a81 Bump mockito-core from 3.5.13 to 3.5.15 (#72)
add 244411c Bump japicmp-maven-plugin from 0.14.3 to 0.14.4 (#71)
add 195a041 Update dependencies.
add c64bdc8 Add SECURITY.MD.
add 4b807ea Typo.
add b133be7 Use Objects.hash().
add 7efda36 Remove useless null-check.
add 7be1cee Remove redundant calls to super().
add c020acc No need to initialize to default value.
add da1f5ed Travis: Replace Java 14 with 15. One Java 11 build.
add 8ddf6db Use final.
add de31bd7 Remove useless return.
add 93334d5 Use final.
add 18ae8ab Use String.contains() instead of indexOf()
add ec6321c Replace StringBuffer with StringBuilder
add 309e204 Use for-each loops
add 3cc5fa0 Replace explicit types with <>
add 7fb272a Collapse identical catch blocks
add a07eded Remove unused imports
add 35da734 Use Java-style array declarations
add 9ba653e Remove unnecessary conversions to String
add d9ee969 Use auto-boxing
add 0cb8a50 Normalize spelling to US English in comments.
add 3b37562 Fix spelling in Javadoc.
add 77c4864 Bump mockito-core from 3.5.15 to 3.6.28 (#77)
add def4d7c Bump mockito-core from 3.5.15 to 3.6.28 #77.
add 754cced Bump maven-pmd-plugin from 3.13.0 to 3.14.0 (#76)
add 9312e9b Bump maven-pmd-plugin from 3.13.0 to 3.14.0 #76.
add b6bdcdd Bump actions/checkout from v2.3.3 to v2.3.4 #74.
add 3ac3f58 Bump actions/checkout from v2.3.3 to v2.3.4 (#74)
add 9539444 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-dbcp.git
add cbf77a0 Use abort rather than close to destroy abandoned connections. Fixes DBCP-567. (#68)
add c11ddde [DBCP-567] Use abort rather than close to destroy abandoned connections #68.
add 8a0dc02 [DBCP-567] Use abort rather than close to destroy abandoned connections #68.
add 0099390 [DBCP-567] Use abort rather than close to destroy abandoned connections #68.
add 7529c24 [DBCP-567] Use abort rather than close to destroy abandoned connections #68.
add ea019c8 Sort members.
add 330a90d [DBCP-567] Use abort rather than close to destroy abandoned connections #68.
add f3f41f6 [DBCP-567] making abort synchronous (#80)
add 6abdbf2 Javadoc.
add d917eb7 Javadoc.
add 771b143 Add missing Javadoc.
add fc64ac2 Fix Javadoc.
add 8098eaa Javadoc.
add 3aefb3f Add Java 17-EA to the GitHub build.
add 64a5637 Update commons.japicmp.version 0.14.4 -> 0.15.1.
add d71fcb1 Bump mockito-core from 3.6.28 to 3.7.0 (#85)
add f570301 Bump mockito-core from 3.6.28 to 3.7.0 #85
add e08dd59 Bump japicmp-maven-plugin from 0.14.4 to 0.15.1 (#83)
add dd8be54 Bump japicmp-maven-plugin from 0.14.4 to 0.15.1 #83
add 09d2ca0 Collapse multiple identical catch clauses into one.
add 86ade01 Update com.github.siom79.japicmp:japicmp-maven-plugin 0.15.1 -> 0.15.2.
add 782a1f1 Fix broken link
add 26b225c Fix Checkstyle configuration DTD link.
add 37568cd Bump japicmp-maven-plugin from 0.15.1 to 0.15.2 (#86)
add a79c986 Bump japicmp-maven-plugin from 0.15.1 to 0.15.2 #86.
add f36c6fe [DBCP-569] Fix test random failure on TestSynchronizationOrder.testInterposedSynchronization (#84) (#84)
add 430e2f2 # WARNING: head commit changed in the meantime (#82)
add 2535b94 [DBCP-568] ManagedConnection must clear its cached state after transaction completes #75 (#75)
add 4c56a3c Comment.
add f58b388 Minor Improvements #78.
add e34be8b Minor Improvement: (#78)
add 782b5fc Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-dbcp.git
add e013ec5 hamcrest v2.2 (#70)
add c5d92ed Update Hamcrest 1.3 -> 2.2 #70.
add 5e1941c Performance Enhancement: Call toArray with Zero Array Size #20.
add e24196a Define and use constants for empty arrays.
add a10231b Use isEmpty().
add a86d227 Use isEmpty().
add 11233ec Use isEmpty().
add 5286693 Make private elements final where possible.
add 406aff1 Use the scale in the var name.
add 192ee41 Remove trailing whitepsace.
add b149565 No need to nest in else.
add 3e6aff1 Bump mockito-core from 3.7.0 to 3.8.0 (#91)
add 254a1e1 Bump actions/cache from v2 to v2.1.4 (#90)
add 07f1691 Bump maven-checkstyle-plugin from 3.1.1 to 3.1.2 (#88)
add 87d1f8e Bump junit-jupiter from 5.7.0 to 5.7.1 (#89)
add 8bee801 Update some dependencies.
add e17a986 Update com.github.siom79.japicmp:japicmp-maven-plugin 0.15.2 -> 0.15.3.
add 1fa5dcc Replace GitHub build for Java 15 with Java 16 and drop Java 16-ea.
add ec71413 Update `actions/setup-java` to v2.
add 6d07c39 Add GitHub code of conduct page that points to the Apache page.
add 332e50f Bump mockito-core from 3.8.0 to 3.10.0 (#105)
add 58a2d2b Bump mockito-core from 3.8.0 to 3.10.0 #105.
add 685af12 Bump narayana-jta from 5.10.6.Final to 5.11.2.Final (#103)
add c196118 Bump narayana-jta from 5.10.6.Final to 5.11.2.Final #103.
add 249dce5 Bump junit-jupiter from 5.7.1 to 5.7.2 (#106)
add 0e9fadc Bump junit-jupiter from 5.7.1 to 5.7.2 #106.
add 839a54b Bump maven-javadoc-plugin from 3.2.0 to 3.3.0 (#107)
add 7c60b82 Bump maven-javadoc-plugin from 3.2.0 to 3.3.0 #107.
add 3837017 Bump actions/cache from 2.1.4 to 2.1.6 (#108)
add 8f5eb1b Bump actions/cache from 2.1.4 to 2.1.6 #108.
add 33aed06 commons.jacoco.version 0.8.6 -> 0.8.7.
add d970b6a Reorg entries.
add e89deb3 [DBCP-562] Avoid exposing password via JMX #38.
add dec160f Bump jboss-logging from 3.4.1.Final to 3.4.2.Final (#109)
add 5c9c923 Bump jboss-logging from 3.4.1.Final to 3.4.2.Final #109
add 4131207 DBCP-575 - Remove redundant initializer (#98)
add b3d7647 [DBCP-575] Remove redundant initializers #98.
add 5b343ad [DBCP-577] Simplify test assertions #100.
add 9457dd8 DBCP-577 - Simplify assertion (#100)
add 86f9856 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-dbcp.git
add 45e9190 DBCP-573 DataSource implementations do not implement Wrapper interface correctly (#93)
add b716f90 [DBCP-573] DataSource implementations do not implement Wrapper interface correctly #93.
add 092f620 [DBCP-573] DataSource implementations do not implement Wrapper interface correctly #93.
add bdc2620 Use final and simpler array initializations.
add d251611 Update versions for next release.
add 1d778eb Bump commons.jacoco.version 0.8.6 -> 0.8.7.
add fc19280 Replace FindBugs with SpotBugs.
add b6bf016 Updates for 2.9.0 and 2.8.0.
add 7865411 Remove dead Ant build documentation.
add 7b320db Fix team URL path.
add d87c0a2 Fix issues found by SpotBugs.
add e5422ef Fix SpotBugs errors.
add 8d5c91b Update SpotBugs filter: Can't do anything about org.apache.commons.dbcp2.PoolingDriver.pools due to binary compatibility.
add b43d8ad Bump org.jboss:jboss-transaction-spi from 7.6.0.Final to 7.6.1.Final.
add 916f5d3 Bump org.junit.jupiter:junit-jupiter 5.7.2 -> 5.8.0-M1.
add 82c5e28 DBCP-578 - Use List Instead Of Vector (#101)
add 29f2798 [DBCP-578] Use Collections.synchronizedList Instead Of Vector #101.
add dcab6e0 DBCP-576 - Simplify and inline variables (#99)
add d918b20 Simplify and inline variables #99.
add 0658749 Add missing Javadoc.
add 1aa2ba6 Javadoc.
add 5585527 Remove unused local var.
add c863d75 Javadoc.
add b8cb39c Better param names.
add 137f82c Remove obsolete Ant comment.
add c6d5cd9 Remove dead inline comments.
add 0075f5b Bump commons-pool2 from 2.9.0 to 2.10.0.
add 0125593 Bump to next development version
add 6ca601a Add and reuse Constants.KEY_USER and Constants.KEY_PASSWORD.
add 914d17f Note new interface.
add 67e0eba Better param name.
add 416efe8 Better param name.
add 138841a Better param name.
add ebf163f Bump mockito-core from 3.10.0 to 3.11.0 (#110)
add 89f7493 Bump mockito-core from 3.10.0 to 3.11.0 #110.
add e09634c Javadoc.
add 854c248 Javadoc.
add 330a6d5 Package private class does not need non-overridden to be public methods (JApiCmp OK).
add 1a0e9e8 Fix typo in method name. Javadoc. Private static final should be in upper case.
add 2153203 Add and reuse DriverAdapterCPDS.{get|set}DurationBetweenEvictionRuns(), deprecate {get|set}TimeBetweenEvictionRunsMillis().
add f029306 Use == with enum.
add 5a9817c Add and reuse DriverAdapterCPDS.{get|set}MinEvictableIdleDuration(), deprecate {get|set}MinEvictableIdleTimeMillis().
add c116656 Add and reuse CPDSConnectionFactory.setMaxConnLifetime(Duration), deprecate setMaxConnLifetimeMillis(long).
add f87032d Replace Java 15 with Java 16 in Travis CI.
add 3100156 Add @SuppressWarnings with comment and make some internals simpler looking.
add d768e13 Drop deprecated package private constructor.
add 33ddd60 Deduplicate internals.
add c90720c Update PoolKey#toString() to avoid revealing a user name is here.
add 20b52b9 Internal package private UserPassKey class stores its user name as a char[] as it already does the password.
add 7da0703 Internal package private CPDSConnectionFactory class stores its user name as a char[] as it already does the password.
add 0fdbfcd Clone char array before storing it.
add 07382a9 Bump checkstyle to 8.43.
add d569ec5 Test CharArray.
add 982e9ca Use UserPassKey internally.
add 6272dd6 Sort members.
add c512dca Add and reuse InstanceKeyDataSource.{get|set}DefaultMaxWait(Duration), deprecate .{get|set}DefaultMaxWaitMillis(long).
add 80fc0cd Bump narayana-jta from 5.11.2.Final to 5.12.0.Final #111
add 052d1a5 Bump narayana-jta from 5.11.2.Final to 5.12.0.Final (#111)
add 63806bd Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-dbcp
add 337106e Bump mockito-core from 3.11.0 to 3.11.2 (#116)
add b4a4911 Bump mockito-core from 3.11.0 to 3.11.2 #116.
add 0d05cc7 Simplify Assertions (#113)
add 1a8b173 Simplify Assertions #113.
add e4a295a Organize imports, use final, remove super call, inline local var.
add 7790b7c Fix Javadoc warnings.
add e410b18 No need to init to default value.
add 528e513 Update my developer entry.
add 446b21f Use Stream.of().
add e57abd4 Bump spotbugs from 4.2.3 to 4.3.0 (#117)
add f2981ff Bump spotbugs from 4.2.3 to 4.3.0 #117.
add 3a510ad Rename internal vars.
add bcb9594 Be more quiet by default on the console during build tests.
add 1d1d4e9 [DBCP-579] Performance of DelegatingConnection.prepareStatement(String) regressed enormously in 2.8.0 compared to 1.4.
add 835b126 Bump checkstyle to 8.44.
add f334c40 Use try-with-resources.
add de3db98 Fix generics compiler warnings.
add e099337 Refactor boilerplate.
add 9b0f473 Use final.
add 6b6d2cb Bump spotbugs-maven-plugin from 4.2.3 to 4.3.0 #118.
add 6f1a226 Bump spotbugs-maven-plugin from 4.2.3 to 4.3.0 (#118)
add 2888312 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-dbcp.git
add e2e504b Remove unused imports.
add 6701c52 Plugin version is set in the management section.
add 0c10ca2 Parens not needed here.
add 9257348 Use Objects.hash() instead of custom code.
add 464afa3 Test inner classes can be static.
add 6b811d3 Sort members.
add 64daff2 Reuse Utils to close quitely.
new a599aa1 Prepare for a release candidate.
new 25ee5b8 Prepare for a release candidate.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/maven.yml | 13 +-
.travis.yml | 3 +-
.../dbcp2/overview.html => CODE_OF_CONDUCT.md | 13 +-
NOTICE.txt | 2 +-
README.md | 4 +-
RELEASE-NOTES.txt | 115 +-
.../commons/dbcp2/overview.html => SECURITY.md | 13 +-
checkstyle.xml | 4 +-
findbugs-exclude-filter.xml | 6 +
pom.xml | 83 +-
src/changes/changes.xml | 162 ++-
src/changes/release-notes.vm | 6 +-
.../org/apache/commons/dbcp2/AbandonedTrace.java | 7 +-
.../org/apache/commons/dbcp2/BasicDataSource.java | 99 +-
.../commons/dbcp2/BasicDataSourceFactory.java | 250 ++--
.../commons/dbcp2/BasicDataSourceMXBean.java | 330 +----
.../commons/dbcp2/ConnectionFactoryFactory.java | 2 +-
.../java/org/apache/commons/dbcp2/Constants.java | 16 +-
.../commons/dbcp2/DataSourceConnectionFactory.java | 2 +-
...DataSourceMXBean.java => DataSourceMXBean.java} | 284 ++---
.../apache/commons/dbcp2/DelegatingConnection.java | 857 +++++++------
.../commons/dbcp2/DelegatingDatabaseMetaData.java | 22 +-
.../apache/commons/dbcp2/DelegatingResultSet.java | 30 +-
.../apache/commons/dbcp2/DelegatingStatement.java | 39 +-
.../org/apache/commons/dbcp2/DriverFactory.java | 6 +-
.../org/apache/commons/dbcp2/Jdbc41Bridge.java | 142 ++-
.../commons/dbcp2/LifetimeExceededException.java | 1 -
.../apache/commons/dbcp2/ObjectNameWrapper.java | 8 +-
.../java/org/apache/commons/dbcp2/PStmtKey.java | 62 +-
.../commons/dbcp2/PoolableCallableStatement.java | 38 +-
.../apache/commons/dbcp2/PoolableConnection.java | 232 ++--
.../commons/dbcp2/PoolableConnectionFactory.java | 103 +-
.../commons/dbcp2/PoolableConnectionMXBean.java | 44 +-
.../commons/dbcp2/PoolablePreparedStatement.java | 28 +-
.../apache/commons/dbcp2/PoolingConnection.java | 74 +-
.../apache/commons/dbcp2/PoolingDataSource.java | 188 +--
.../org/apache/commons/dbcp2/PoolingDriver.java | 235 ++--
.../org/apache/commons/dbcp2/SQLExceptionList.java | 2 +-
src/main/java/org/apache/commons/dbcp2/Utils.java | 20 +-
.../commons/dbcp2/cpdsadapter/ConnectionImpl.java | 110 +-
.../dbcp2/cpdsadapter/DriverAdapterCPDS.java | 197 ++-
.../commons/dbcp2/cpdsadapter/PStmtKeyCPDS.java | 4 +-
.../dbcp2/cpdsadapter/PooledConnectionImpl.java | 128 +-
.../dbcp2/datasources/CPDSConnectionFactory.java | 364 +++---
.../commons/dbcp2/datasources/CharArray.java | 89 ++
.../dbcp2/datasources/InstanceKeyDataSource.java | 1060 ++++++++--------
.../datasources/InstanceKeyDataSourceFactory.java | 183 ++-
.../datasources/KeyedCPDSConnectionFactory.java | 312 ++---
.../dbcp2/datasources/PerUserPoolDataSource.java | 66 +-
.../datasources/PerUserPoolDataSourceFactory.java | 10 +-
.../apache/commons/dbcp2/datasources/PoolKey.java | 15 +-
.../dbcp2/datasources/PooledConnectionAndInfo.java | 55 +-
.../dbcp2/datasources/PooledConnectionManager.java | 30 +-
.../dbcp2/datasources/SharedPoolDataSource.java | 105 +-
.../datasources/SharedPoolDataSourceFactory.java | 10 +-
.../commons/dbcp2/datasources/UserPassKey.java | 59 +-
.../commons/dbcp2/datasources/package-info.java | 2 +-
.../dbcp2/managed/BasicManagedDataSource.java | 238 ++--
.../managed/DataSourceXAConnectionFactory.java | 58 +-
.../dbcp2/managed/LocalXAConnectionFactory.java | 52 +-
.../commons/dbcp2/managed/ManagedConnection.java | 44 +-
.../commons/dbcp2/managed/ManagedDataSource.java | 38 +-
.../managed/PoolableManagedConnectionFactory.java | 2 +-
.../commons/dbcp2/managed/TransactionContext.java | 195 +--
.../dbcp2/managed/TransactionContextListener.java | 32 +-
.../commons/dbcp2/managed/TransactionRegistry.java | 136 +-
.../commons/dbcp2/managed/XAConnectionFactory.java | 48 +-
.../org/apache/commons/dbcp2/package-info.java | 2 +-
src/site/site.xml | 2 +-
src/site/xdoc/building.xml | 8 -
src/site/xdoc/download_dbcp.xml | 280 ++--
src/site/xdoc/index.xml | 42 +-
src/site/xdoc/mail-lists.xml | 20 +-
.../org/apache/commons/dbcp2/StackMessageLog.java | 98 +-
.../dbcp2/TestAbandonedBasicDataSource.java | 257 ++--
.../apache/commons/dbcp2/TestBasicDataSource.java | 1280 ++++++++++---------
.../commons/dbcp2/TestBasicDataSourceFactory.java | 244 ++--
.../commons/dbcp2/TestBasicDataSourceMXBean.java | 132 +-
.../apache/commons/dbcp2/TestConnectionPool.java | 1342 ++++++++++----------
.../dbcp2/TestDataSourceConnectionFactory.java | 98 +-
.../dbcp2/TestDelegatingCallableStatement.java | 460 +++----
.../commons/dbcp2/TestDelegatingConnection.java | 78 +-
.../dbcp2/TestDelegatingDatabaseMetaData.java | 149 ++-
.../dbcp2/TestDelegatingPreparedStatement.java | 162 +--
.../commons/dbcp2/TestDelegatingResultSet.java | 586 ++++-----
.../commons/dbcp2/TestDelegatingStatement.java | 19 +-
.../commons/dbcp2/TestDriverConnectionFactory.java | 12 +-
.../dbcp2/TestDriverManagerConnectionFactory.java | 140 +-
.../java/org/apache/commons/dbcp2/TestJndi.java | 109 +-
.../dbcp2/TestLifetimeExceededException.java | 12 +-
.../apache/commons/dbcp2/TestListException.java | 14 +-
.../org/apache/commons/dbcp2/TestPStmtKey.java | 135 +-
.../org/apache/commons/dbcp2/TestPStmtPooling.java | 137 +-
.../dbcp2/TestPStmtPoolingBasicDataSource.java | 152 ++-
.../dbcp2/TestParallelCreationWithNoIdle.java | 108 +-
.../commons/dbcp2/TestPoolableConnection.java | 82 +-
.../commons/dbcp2/TestPoolingConnection.java | 76 +-
.../commons/dbcp2/TestPoolingDataSource.java | 218 ++--
.../apache/commons/dbcp2/TestPoolingDriver.java | 119 +-
.../commons/dbcp2/TesterCallableStatement.java | 40 +-
.../apache/commons/dbcp2/TesterClassLoader.java | 8 +-
.../org/apache/commons/dbcp2/TesterConnection.java | 47 +-
.../commons/dbcp2/TesterConnectionFactory.java | 7 +-
.../commons/dbcp2/TesterDatabaseMetaData.java | 188 ++-
.../org/apache/commons/dbcp2/TesterDriver.java | 26 +-
.../commons/dbcp2/TesterPreparedStatement.java | 56 +-
.../org/apache/commons/dbcp2/TesterResultSet.java | 34 +-
.../org/apache/commons/dbcp2/TesterStatement.java | 14 +-
.../java/org/apache/commons/dbcp2/TesterUtils.java | 8 +-
.../dbcp2/cpdsadapter/TestDriverAdapterCPDS.java | 388 +++---
.../CharArrayTest.java} | 45 +-
.../datasources/ConnectionPoolDataSourceProxy.java | 21 +-
.../dbcp2/datasources/PooledConnectionProxy.java | 102 +-
.../datasources/TestCPDSConnectionFactory.java | 82 +-
.../datasources/TestInstanceKeyDataSource.java | 260 ++--
.../TestKeyedCPDSConnectionFactory.java | 62 +-
.../datasources/TestPerUserPoolDataSource.java | 1290 +++++++++----------
.../datasources/TestSharedPoolDataSource.java | 890 +++++++------
.../commons/dbcp2/datasources/TestUserPassKey.java | 18 +-
.../dbcp2/managed/TestBasicManagedDataSource.java | 208 +--
.../dbcp2/managed/TestConnectionWithNarayana.java | 110 +-
.../managed/TestDataSourceXAConnectionFactory.java | 78 +-
.../commons/dbcp2/managed/TestLocalXaResource.java | 670 +++++-----
.../dbcp2/managed/TestManagedConnection.java | 215 ++--
.../managed/TestManagedConnectionCachedState.java | 130 ++
.../dbcp2/managed/TestManagedDataSource.java | 213 ++--
.../dbcp2/managed/TestManagedDataSourceInTx.java | 470 +++----
.../managed/TestPoolableManagedConnection.java | 5 +-
.../dbcp2/managed/TestSynchronizationOrder.java | 328 ++---
.../dbcp2/managed/TestTransactionContext.java | 67 +-
.../dbcp2/managed/TesterBasicXAConnection.java | 247 ++--
.../dbcp2/transaction/TransactionAdapter.java | 70 +
.../transaction/TransactionManagerAdapter.java | 80 ++
.../TransactionSynchronizationRegistryAdapter.java | 63 +
134 files changed, 10430 insertions(+), 9870 deletions(-)
copy src/main/java/org/apache/commons/dbcp2/overview.html => CODE_OF_CONDUCT.md (79%)
copy src/main/java/org/apache/commons/dbcp2/overview.html => SECURITY.md (79%)
copy src/main/java/org/apache/commons/dbcp2/{BasicDataSourceMXBean.java => DataSourceMXBean.java} (62%)
create mode 100644 src/main/java/org/apache/commons/dbcp2/datasources/CharArray.java
copy src/test/java/org/apache/commons/dbcp2/{TestListException.java => datasources/CharArrayTest.java} (51%)
create mode 100644 src/test/java/org/apache/commons/dbcp2/managed/TestManagedConnectionCachedState.java
create mode 100644 src/test/java/org/apache/commons/dbcp2/transaction/TransactionAdapter.java
create mode 100644 src/test/java/org/apache/commons/dbcp2/transaction/TransactionManagerAdapter.java
create mode 100644 src/test/java/org/apache/commons/dbcp2/transaction/TransactionSynchronizationRegistryAdapter.java
[commons-dbcp] 01/02: Prepare for a release candidate.
Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch release
in repository https://gitbox.apache.org/repos/asf/commons-dbcp.git
commit a599aa1f2e3d690d7d918c60d93c9bd68b30fdcb
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Jul 31 10:55:38 2021 -0400
Prepare for a release candidate.
---
NOTICE.txt | 2 +-
README.md | 4 +-
src/changes/changes.xml | 2 +-
src/site/xdoc/download_dbcp.xml | 256 ++++++++++++++++++++--------------------
src/site/xdoc/mail-lists.xml | 20 +++-
5 files changed, 147 insertions(+), 137 deletions(-)
diff --git a/NOTICE.txt b/NOTICE.txt
index a46f751..208225a 100644
--- a/NOTICE.txt
+++ b/NOTICE.txt
@@ -1,5 +1,5 @@
Apache Commons DBCP
-Copyright 2001-2020 The Apache Software Foundation
+Copyright 2001-2021 The Apache Software Foundation
This product includes software developed at
The Apache Software Foundation (https://www.apache.org/).
diff --git a/README.md b/README.md
index 305f8b0..c6c73f7 100644
--- a/README.md
+++ b/README.md
@@ -47,7 +47,7 @@ Apache Commons DBCP
[](https://github.com/apache/commons-dbcp/actions)
[](https://coveralls.io/r/apache/commons-dbcp)
[](https://maven-badges.herokuapp.com/maven-central/org.apache.commons/commons-dbcp2/)
-[](https://javadoc.io/doc/org.apache.commons/commons-dbcp2/2.8.0)
+[](https://javadoc.io/doc/org.apache.commons/commons-dbcp2/2.9.0)
Apache Commons DBCP software implements Database Connection Pooling
@@ -68,7 +68,7 @@ Alternatively you can pull it from the central Maven repositories:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-dbcp2</artifactId>
- <version>2.8.0</version>
+ <version>2.9.0</version>
</dependency>
```
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 1b86765..833f291 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -60,7 +60,7 @@ The <action> type attribute can be add,update,fix,remove.
EvictionTimer
-->
<body>
- <release version="2.9.0" date="202Y-MM-DD" description="This is a minor release, including bug fixes and enhancements.">
+ <release version="2.9.0" date="2021-07-30" description="This is a minor release, including bug fixes and enhancements.">
<!-- ADDS -->
<action dev="ggregory" type="add" due-to="Gary Gregory">
Add and reuse Constants.KEY_USER and Constants.KEY_PASSWORD.
diff --git a/src/site/xdoc/download_dbcp.xml b/src/site/xdoc/download_dbcp.xml
index f761779..c4a9a10 100644
--- a/src/site/xdoc/download_dbcp.xml
+++ b/src/site/xdoc/download_dbcp.xml
@@ -1,144 +1,144 @@
-<?xml version="1.0"?>
-<!--
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
--->
-<!--
- +======================================================================+
- |**** ****|
- |**** THIS FILE IS GENERATED BY THE COMMONS BUILD PLUGIN ****|
- |**** DO NOT EDIT DIRECTLY ****|
- |**** ****|
- +======================================================================+
- | TEMPLATE FILE: download-page-template.xml |
- | commons-build-plugin/trunk/src/main/resources/commons-xdoc-templates |
- +======================================================================+
- | |
- | 1) Re-generate using: mvn commons-build:download-page |
- | |
- | 2) Set the following properties in the component's pom: |
- | - commons.componentid (required, alphabetic, lower case) |
- | - commons.release.version (required) |
- | - commons.release.name (required) |
- | - commons.binary.suffix (optional) |
- | (defaults to "-bin", set to "" for pre-maven2 releases) |
- | - commons.release.desc (optional) |
- | - commons.release.subdir (optional) |
- | - commons.release.hash (optional, lowercase, default sha512) |
- | |
- | - commons.release.[234].version (conditional) |
- | - commons.release.[234].name (conditional) |
- | - commons.release.[234].binary.suffix (optional) |
- | - commons.release.[234].desc (optional) |
- | - commons.release.[234].subdir (optional) |
- | - commons.release.[234].hash (optional, lowercase, [sha512])|
- | |
- | 3) Example Properties |
- | (commons.release.name inherited by parent: |
- | ${project.artifactId}-${commons.release.version} |
- | |
- | <properties> |
- | <commons.componentid>math</commons.componentid> |
- | <commons.release.version>1.2</commons.release.version> |
- | </properties> |
- | |
- +======================================================================+
--->
-<document>
- <properties>
- <title>Download Apache Commons DBCP</title>
- <author email="dev@commons.apache.org">Apache Commons Documentation Team</author>
- </properties>
- <body>
- <section name="Download Apache Commons DBCP">
- <subsection name="Using a Mirror">
- <p>
- We recommend you use a mirror to download our release
- builds, but you <strong>must</strong> <a href="https://www.apache.org/info/verification.html">verify the integrity</a> of
- the downloaded files using signatures downloaded from our main
- distribution directories. Recent releases (48 hours) may not yet
- be available from all the mirrors.
- </p>
-
- <p>
- You are currently using <b>[preferred]</b>. If you
- encounter a problem with this mirror, please select another
- mirror. If all mirrors are failing, there are <i>backup</i>
- mirrors (at the end of the mirrors list) that should be
- available.
- <br></br>
- [if-any logo]<a href="[link]"><img align="right" src="[logo]" border="0"></img></a>[end]
- </p>
-
- <form action="[location]" method="get" id="SelectMirror">
- <p>
- Other mirrors:
- <select name="Preferred">
- [if-any http]
- [for http]<option value="[http]">[http]</option>[end]
- [end]
- [if-any ftp]
- [for ftp]<option value="[ftp]">[ftp]</option>[end]
- [end]
- [if-any backup]
- [for backup]<option value="[backup]">[backup] (backup)</option>[end]
- [end]
- </select>
- <input type="submit" value="Change"></input>
- </p>
- </form>
-
- <p>
- It is essential that you
- <a href="https://www.apache.org/info/verification.html">verify the integrity</a>
- of downloaded files, preferably using the <code>PGP</code> signature (<code>*.asc</code> files);
- failing that using the <code>SHA512</code> hash (<code>*.sha512</code> checksum files).
- </p>
- <p>
- The <a href="https://www.apache.org/dist/commons/KEYS">KEYS</a>
- file contains the public PGP keys used by Apache Commons developers
- to sign releases.
- </p>
- </subsection>
- </section>
- <section name="Apache Commons DBCP 2.8.0 for JDBC 4.2 on Java 8">
+<?xml version="1.0"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<!--
+ +======================================================================+
+ |**** ****|
+ |**** THIS FILE IS GENERATED BY THE COMMONS BUILD PLUGIN ****|
+ |**** DO NOT EDIT DIRECTLY ****|
+ |**** ****|
+ +======================================================================+
+ | TEMPLATE FILE: download-page-template.xml |
+ | commons-build-plugin/trunk/src/main/resources/commons-xdoc-templates |
+ +======================================================================+
+ | |
+ | 1) Re-generate using: mvn commons-build:download-page |
+ | |
+ | 2) Set the following properties in the component's pom: |
+ | - commons.componentid (required, alphabetic, lower case) |
+ | - commons.release.version (required) |
+ | - commons.release.name (required) |
+ | - commons.binary.suffix (optional) |
+ | (defaults to "-bin", set to "" for pre-maven2 releases) |
+ | - commons.release.desc (optional) |
+ | - commons.release.subdir (optional) |
+ | - commons.release.hash (optional, lowercase, default sha512) |
+ | |
+ | - commons.release.[234].version (conditional) |
+ | - commons.release.[234].name (conditional) |
+ | - commons.release.[234].binary.suffix (optional) |
+ | - commons.release.[234].desc (optional) |
+ | - commons.release.[234].subdir (optional) |
+ | - commons.release.[234].hash (optional, lowercase, [sha512])|
+ | |
+ | 3) Example Properties |
+ | (commons.release.name inherited by parent: |
+ | ${project.artifactId}-${commons.release.version} |
+ | |
+ | <properties> |
+ | <commons.componentid>math</commons.componentid> |
+ | <commons.release.version>1.2</commons.release.version> |
+ | </properties> |
+ | |
+ +======================================================================+
+-->
+<document>
+ <properties>
+ <title>Download Apache Commons DBCP</title>
+ <author email="dev@commons.apache.org">Apache Commons Documentation Team</author>
+ </properties>
+ <body>
+ <section name="Download Apache Commons DBCP">
+ <subsection name="Using a Mirror">
+ <p>
+ We recommend you use a mirror to download our release
+ builds, but you <strong>must</strong> <a href="https://www.apache.org/info/verification.html">verify the integrity</a> of
+ the downloaded files using signatures downloaded from our main
+ distribution directories. Recent releases (48 hours) may not yet
+ be available from all the mirrors.
+ </p>
+
+ <p>
+ You are currently using <b>[preferred]</b>. If you
+ encounter a problem with this mirror, please select another
+ mirror. If all mirrors are failing, there are <i>backup</i>
+ mirrors (at the end of the mirrors list) that should be
+ available.
+ <br></br>
+ [if-any logo]<a href="[link]"><img align="right" src="[logo]" border="0"></img></a>[end]
+ </p>
+
+ <form action="[location]" method="get" id="SelectMirror">
+ <p>
+ Other mirrors:
+ <select name="Preferred">
+ [if-any http]
+ [for http]<option value="[http]">[http]</option>[end]
+ [end]
+ [if-any ftp]
+ [for ftp]<option value="[ftp]">[ftp]</option>[end]
+ [end]
+ [if-any backup]
+ [for backup]<option value="[backup]">[backup] (backup)</option>[end]
+ [end]
+ </select>
+ <input type="submit" value="Change"></input>
+ </p>
+ </form>
+
+ <p>
+ It is essential that you
+ <a href="https://www.apache.org/info/verification.html">verify the integrity</a>
+ of downloaded files, preferably using the <code>PGP</code> signature (<code>*.asc</code> files);
+ failing that using the <code>SHA512</code> hash (<code>*.sha512</code> checksum files).
+ </p>
+ <p>
+ The <a href="https://www.apache.org/dist/commons/KEYS">KEYS</a>
+ file contains the public PGP keys used by Apache Commons developers
+ to sign releases.
+ </p>
+ </subsection>
+ </section>
+ <section name="Apache Commons DBCP 2.9.0 for JDBC 4.2 on Java 8">
<subsection name="Binaries">
<table>
<tr>
- <td><a href="[preferred]/commons/dbcp/binaries/commons-dbcp2-2.8.0-bin.tar.gz">commons-dbcp2-2.8.0-bin.tar.gz</a></td>
- <td><a href="https://www.apache.org/dist/commons/dbcp/binaries/commons-dbcp2-2.8.0-bin.tar.gz.sha512">sha512</a></td>
- <td><a href="https://www.apache.org/dist/commons/dbcp/binaries/commons-dbcp2-2.8.0-bin.tar.gz.asc">pgp</a></td>
+ <td><a href="[preferred]/commons/dbcp/binaries/commons-dbcp2-2.9.0-bin.tar.gz">commons-dbcp2-2.9.0-bin.tar.gz</a></td>
+ <td><a href="https://www.apache.org/dist/commons/dbcp/binaries/commons-dbcp2-2.9.0-bin.tar.gz.sha512">sha512</a></td>
+ <td><a href="https://www.apache.org/dist/commons/dbcp/binaries/commons-dbcp2-2.9.0-bin.tar.gz.asc">pgp</a></td>
</tr>
<tr>
- <td><a href="[preferred]/commons/dbcp/binaries/commons-dbcp2-2.8.0-bin.zip">commons-dbcp2-2.8.0-bin.zip</a></td>
- <td><a href="https://www.apache.org/dist/commons/dbcp/binaries/commons-dbcp2-2.8.0-bin.zip.sha512">sha512</a></td>
- <td><a href="https://www.apache.org/dist/commons/dbcp/binaries/commons-dbcp2-2.8.0-bin.zip.asc">pgp</a></td>
+ <td><a href="[preferred]/commons/dbcp/binaries/commons-dbcp2-2.9.0-bin.zip">commons-dbcp2-2.9.0-bin.zip</a></td>
+ <td><a href="https://www.apache.org/dist/commons/dbcp/binaries/commons-dbcp2-2.9.0-bin.zip.sha512">sha512</a></td>
+ <td><a href="https://www.apache.org/dist/commons/dbcp/binaries/commons-dbcp2-2.9.0-bin.zip.asc">pgp</a></td>
</tr>
</table>
</subsection>
<subsection name="Source">
<table>
<tr>
- <td><a href="[preferred]/commons/dbcp/source/commons-dbcp2-2.8.0-src.tar.gz">commons-dbcp2-2.8.0-src.tar.gz</a></td>
- <td><a href="https://www.apache.org/dist/commons/dbcp/source/commons-dbcp2-2.8.0-src.tar.gz.sha512">sha512</a></td>
- <td><a href="https://www.apache.org/dist/commons/dbcp/source/commons-dbcp2-2.8.0-src.tar.gz.asc">pgp</a></td>
+ <td><a href="[preferred]/commons/dbcp/source/commons-dbcp2-2.9.0-src.tar.gz">commons-dbcp2-2.9.0-src.tar.gz</a></td>
+ <td><a href="https://www.apache.org/dist/commons/dbcp/source/commons-dbcp2-2.9.0-src.tar.gz.sha512">sha512</a></td>
+ <td><a href="https://www.apache.org/dist/commons/dbcp/source/commons-dbcp2-2.9.0-src.tar.gz.asc">pgp</a></td>
</tr>
<tr>
- <td><a href="[preferred]/commons/dbcp/source/commons-dbcp2-2.8.0-src.zip">commons-dbcp2-2.8.0-src.zip</a></td>
- <td><a href="https://www.apache.org/dist/commons/dbcp/source/commons-dbcp2-2.8.0-src.zip.sha512">sha512</a></td>
- <td><a href="https://www.apache.org/dist/commons/dbcp/source/commons-dbcp2-2.8.0-src.zip.asc">pgp</a></td>
+ <td><a href="[preferred]/commons/dbcp/source/commons-dbcp2-2.9.0-src.zip">commons-dbcp2-2.9.0-src.zip</a></td>
+ <td><a href="https://www.apache.org/dist/commons/dbcp/source/commons-dbcp2-2.9.0-src.zip.sha512">sha512</a></td>
+ <td><a href="https://www.apache.org/dist/commons/dbcp/source/commons-dbcp2-2.9.0-src.zip.asc">pgp</a></td>
</tr>
</table>
</subsection>
diff --git a/src/site/xdoc/mail-lists.xml b/src/site/xdoc/mail-lists.xml
index 488535c..b35aa7a 100644
--- a/src/site/xdoc/mail-lists.xml
+++ b/src/site/xdoc/mail-lists.xml
@@ -105,7 +105,9 @@ limitations under the License.
<td><a href="mailto:user-subscribe@commons.apache.org">Subscribe</a></td>
<td><a href="mailto:user-unsubscribe@commons.apache.org">Unsubscribe</a></td>
<td><a href="mailto:user@commons.apache.org?subject=[dbcp]">Post</a></td>
- <td><a href="https://mail-archives.apache.org/mod_mbox/commons-user/">mail-archives.apache.org</a></td>
+ <td><a href="https://mail-archives.apache.org/mod_mbox/commons-user/">mail-archives.apache.org</a><br />
+ <a href="https://lists.apache.org/list.html?user@commons.apache.org">lists.apache.org</a>
+ </td>
<td><a href="https://markmail.org/list/org.apache.commons.users/">markmail.org</a><br />
<a href="https://www.mail-archive.com/user@commons.apache.org/">www.mail-archive.com</a><br />
<a href="https://news.gmane.org/gmane.comp.jakarta.commons.devel">news.gmane.org</a>
@@ -123,7 +125,9 @@ limitations under the License.
<td><a href="mailto:dev-subscribe@commons.apache.org">Subscribe</a></td>
<td><a href="mailto:dev-unsubscribe@commons.apache.org">Unsubscribe</a></td>
<td><a href="mailto:dev@commons.apache.org?subject=[dbcp]">Post</a></td>
- <td><a href="https://mail-archives.apache.org/mod_mbox/commons-dev/">mail-archives.apache.org</a></td>
+ <td><a href="https://mail-archives.apache.org/mod_mbox/commons-dev/">mail-archives.apache.org</a><br />
+ <a href="https://lists.apache.org/list.html?dev@commons.apache.org">lists.apache.org</a>
+ </td>
<td><a href="https://markmail.org/list/org.apache.commons.dev/">markmail.org</a><br />
<a href="https://www.mail-archive.com/dev@commons.apache.org/">www.mail-archive.com</a><br />
<a href="https://news.gmane.org/gmane.comp.jakarta.commons.devel">news.gmane.org</a>
@@ -141,7 +145,9 @@ limitations under the License.
<td><a href="mailto:issues-subscribe@commons.apache.org">Subscribe</a></td>
<td><a href="mailto:issues-unsubscribe@commons.apache.org">Unsubscribe</a></td>
<td><i>read only</i></td>
- <td><a href="https://mail-archives.apache.org/mod_mbox/commons-issues/">mail-archives.apache.org</a></td>
+ <td><a href="https://mail-archives.apache.org/mod_mbox/commons-issues/">mail-archives.apache.org</a><br />
+ <a href="https://lists.apache.org/list.html?issues@commons.apache.org">lists.apache.org</a>
+ </td>
<td><a href="https://markmail.org/list/org.apache.commons.issues/">markmail.org</a><br />
<a href="https://www.mail-archive.com/issues@commons.apache.org/">www.mail-archive.com</a>
</td>
@@ -158,7 +164,9 @@ limitations under the License.
<td><a href="mailto:commits-subscribe@commons.apache.org">Subscribe</a></td>
<td><a href="mailto:commits-unsubscribe@commons.apache.org">Unsubscribe</a></td>
<td><i>read only</i></td>
- <td><a href="https://mail-archives.apache.org/mod_mbox/commons-commits/">mail-archives.apache.org</a></td>
+ <td><a href="https://mail-archives.apache.org/mod_mbox/commons-commits/">mail-archives.apache.org</a><br />
+ <a href="https://lists.apache.org/list.html?commits@commons.apache.org">lists.apache.org</a>
+ </td>
<td><a href="https://markmail.org/list/org.apache.commons.commits/">markmail.org</a><br />
<a href="https://www.mail-archive.com/commits@commons.apache.org/">www.mail-archive.com</a>
</td>
@@ -191,7 +199,9 @@ limitations under the License.
<td><a class="externalLink" href="mailto:announce-subscribe@apache.org">Subscribe</a></td>
<td><a class="externalLink" href="mailto:announce-unsubscribe@apache.org">Unsubscribe</a></td>
<td><i>read only</i></td>
- <td><a class="externalLink" href="https://mail-archives.apache.org/mod_mbox/www-announce/">mail-archives.apache.org</a></td>
+ <td><a class="externalLink" href="https://mail-archives.apache.org/mod_mbox/www-announce/">mail-archives.apache.org</a><br />
+ <a class="externalLink" href="https://lists.apache.org/list.html?announce@apache.org">lists.apache.org</a>
+ </td>
<td><a class="externalLink" href="https://markmail.org/list/org.apache.announce/">markmail.org</a><br />
<a class="externalLink" href="https://old.nabble.com/Apache-News-and-Announce-f109.html">old.nabble.com</a><br />
<a class="externalLink" href="https://www.mail-archive.com/announce@apache.org/">www.mail-archive.com</a><br />
[commons-dbcp] 02/02: Prepare for a release candidate.
Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch release
in repository https://gitbox.apache.org/repos/asf/commons-dbcp.git
commit 25ee5b829b8978dfc59dd2917cdb4ca5341fee28
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Jul 31 10:58:27 2021 -0400
Prepare for a release candidate.
---
RELEASE-NOTES.txt | 115 ++++++++++++++++++++++++++++++++++++-------
src/changes/release-notes.vm | 6 ++-
2 files changed, 102 insertions(+), 19 deletions(-)
diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt
index fbe93e4..820e4a3 100644
--- a/RELEASE-NOTES.txt
+++ b/RELEASE-NOTES.txt
@@ -1,6 +1,87 @@
Apache Apache Commons DBCP
- Version 2.8.0
- RELEASE NOTES
+ Version 2.9.0
+ RELEASE NOTES
+
+The Apache Commons DBCP team is pleased to announce the release of Apache Apache Commons DBCP 2.9.0.
+
+Apache Commons DBCP software implements Database Connection Pooling.
+
+This is a minor release, including bug fixes and enhancements.
+
+Changes in this version include:
+
+New features:
+o Add and reuse Constants.KEY_USER and Constants.KEY_PASSWORD. Thanks to Gary Gregory.
+o Add and reuse DataSourceMXBean. Thanks to Frank Gasdorf, Gary Gregory.
+o Add and reuse DriverAdapterCPDS.{get|set}DurationBetweenEvictionRuns(), deprecate {get|set}TimeBetweenEvictionRunsMillis(long). Thanks to Gary Gregory.
+o Add and reuse DriverAdapterCPDS.{get|set}MinEvictableIdleDuration(), deprecate {get|set}MinEvictableIdleTimeMillis(int). Thanks to Gary Gregory.
+o Add and reuse CPDSConnectionFactory.setMaxConnLifetime(Duration), deprecate setMaxConnLifetimeMillis(long). Thanks to Gary Gregory.
+o Add and reuse KeyedCPDSConnectionFactory.setMaxConnLifetime(Duration), deprecate setMaxConnLifetimeMillis(long). Thanks to Gary Gregory.
+o Add and reuse KeyedCPDSConnectionFactory.setMaxConnLifetime(Duration), deprecate setMaxConnLifetimeMillis(long). Thanks to Gary Gregory.
+o Add and reuse InstanceKeyDataSource.{get|set}DefaultMaxWait(Duration), deprecate {get|set}DefaultMaxWaitMillis(long). Thanks to Gary Gregory.
+
+Fixed Bugs:
+o DBCP-569: Fix test random failure on TestSynchronizationOrder.testInterposedSynchronization, #84. Thanks to Florent Guillaume.
+o DBCP-568: ManagedConnection must clear its cached state after transaction completes, #75. Thanks to Florent Guillaume.
+o Minor Improvements #78. Thanks to Arturo Bernal.
+o DBCP-567: Use abort rather than close to clean up abandoned connections. Thanks to Phil Steitz, Gary Gregory, Phil Steitz, Romain Manni-Bucau.
+o Performance Enhancement: Call toArray with Zero Array Size #20. Thanks to Gary Gregory, DaGeRe.
+o DBCP-562: Avoid exposing password via JMX #38. Thanks to Frank Gasdorf, Gary Gregory.
+o DBCP-575: Remove redundant initializers #98. Thanks to Arturo Bernal.
+o DBCP-577: Simplify test assertions #100, #113. Thanks to Arturo Bernal.
+o DBCP-573: DataSource implementations do not implement Wrapper interface correctly #93. Thanks to Réda Housni Alaoui, Gary Gregory.
+o Replace FindBugs with SpotBugs.
+o DataSourceConnectionFactory.getUserPassword() may expose internal representation by returning DataSourceConnectionFactory.userPassword.
+o DataSourceXAConnectionFactory.getUserPassword() may expose internal representation by returning DataSourceXAConnectionFactory.userPassword.
+o DriverAdapterCPDS.getPasswordCharArray() may expose internal representation by returning DriverAdapterCPDS.userPassword.
+o new org.apache.commons.dbcp2.managed.DataSourceXAConnectionFactory(TransactionManager, XADataSource, String, char[], TransactionSynchronizationRegistry) may expose internal representation by storing an externally mutable object into DataSourceXAConnectionFactory.userPassword.
+o org.apache.commons.dbcp2.managed.DataSourceXAConnectionFactory.setPassword(char[]) may expose internal representation by storing an externally mutable object into DataSourceXAConnectionFactory.userPassword.
+o org.apache.commons.dbcp2.PStmtKey.getColumnIndexes() may expose internal representation by returning PStmtKey.columnIndexes.
+o org.apache.commons.dbcp2.PStmtKey.getColumnNames() may expose internal representation by returning PStmtKey.columnNames.
+o DBCP-578: Use Collections.synchronizedList() Instead Of Vector #101. Thanks to Arturo Bernal.
+o DBCP-576: Simplify and inline variables #99. Thanks to Arturo Bernal.
+o Update PoolKey#toString() to avoid revealing a user name is here. Thanks to Gary Gregory.
+o Internal package private UserPassKey class stores its user name as a char[] as it already does the password. Thanks to Gary Gregory.
+o DBCP-579: Performance of DelegatingConnection.prepareStatement(String) regressed enormously in 2.8.0 compared to 1.4.
+ DelegatingConnection should also cache connection schema string to avoid calling the Connection#getSchema() for each key creation.
+ DelegatingConnection should also cache connection catalog string to avoid calling the Connection#getCatalog() for each key creation. Thanks to Shaktisinh Jhala, Gary Gregory.
+o BasicDataSource should test for the presence of a security manager dynamically, not once on initialization. Thanks to Gary Gregory.
+
+Changes:
+o Bump mockito-core from 3.5.11 to 3.11.2 #66, #72, #77, #85, #91, #105, #110, #116. Thanks to Dependabot.
+o Bump actions/checkout from v2.3.2 to v2.3.4 #65, #74. Thanks to Dependabot.
+o Bump actions/cache from v2 to v2.1.6 #90, #108. Thanks to Dependabot.
+o Bump commons-pool2 from 2.8.1 to 2.9.0. Thanks to Gary Gregory.
+o Bump actions/setup-java from v1.4.2 to v2 #69. Thanks to Dependabot, Gary Gregory.
+o Bump japicmp-maven-plugin from 0.14.3 to 0.15.2 #71, #82. Thanks to Dependabot, Gary Gregory.
+o Bump maven-pmd-plugin from 3.13.0 to 3.14.0 #76. Thanks to Dependabot.
+o Bump japicmp-maven-plugin from 0.14.4 to 0.15.3, #83. Thanks to Dependabot, Gary Gregory.
+o Bump Hamcrest 1.3 -> 2.2 #70. Thanks to John Patrick.
+o Bump maven-checkstyle-plugin from 3.1.1 to 3.1.2 #88. Thanks to Gary Gregory.
+o Bump junit-jupiter from 5.7.0 to 5.8.0-M1, #89, #106. Thanks to Gary Gregory.
+o Bump narayana-jta from 5.10.6.Final to 5.12.0.Final #103, #111. Thanks to Dependabot.
+o Bump maven-javadoc-plugin from 3.2.0 to 3.3.0 #107. Thanks to Dependabot.
+o Bump commons.jacoco.version 0.8.6 -> 0.8.7. Thanks to Gary Gregory.
+o Bump jboss-logging from 3.4.1.Final to 3.4.2.Final #109. Thanks to Dependabot.
+o Bump org.jboss:jboss-transaction-spi from 7.6.0.Final to 7.6.1.Final. Thanks to Gary Gregory.
+o Bump commons-pool2 from 2.9.0 to 2.10.0. Thanks to Gary Gregory.
+o Bump checkstyle to 8.44. Thanks to Gary Gregory.
+o Bump spotbugs from 4.2.3 to 4.3.0 #117. Thanks to Dependabot.
+o Bump spotbugs-maven-plugin from 4.2.3 to 4.3.0 #118. Thanks to Dependabot.
+
+
+For complete information on Apache Commons DBCP, including instructions on how to submit bug reports,
+patches, or suggestions for improvement, see the Apache Apache Commons DBCP website:
+
+https://commons.apache.org/dbcp/
+
+Download page: https://commons.apache.org/dbcp/download_dbcp.cgi
+
+-----------------------------------------------------------------------------
+
+ Apache Apache Commons DBCP
+ Version 2.8.0
+ RELEASE NOTES
The Apache Commons DBCP team is pleased to announce the release of Apache Apache Commons DBCP 2.8.0.
@@ -50,9 +131,9 @@ Download page: https://commons.apache.org/dbcp/download_dbcp.cgi
-----------------------------------------------------------------------------
Apache Apache Commons DBCP
- Version 2.7.0
- RELEASE NOTES
- 7 July 2019
+ Version 2.7.0
+ RELEASE NOTES
+ 7 July 2019
The Apache Commons DBCP team is pleased to announce the release of Apache Apache Commons DBCP 2.7.0.
@@ -104,8 +185,8 @@ Download page: https://commons.apache.org/dbcp/download_dbcp.cgi
-----------------------------------------------------------------------------
Apache Apache Commons DBCP
- Version 2.6.0
- RELEASE NOTES
+ Version 2.6.0
+ RELEASE NOTES
The Apache Commons DBCP team is pleased to announce the release of Apache Apache Commons DBCP 2.6.0.
@@ -143,8 +224,8 @@ Download page: https://commons.apache.org/dbcp/download_dbcp.cgi
-----------------------------------------------------------------------------
Apache Apache Commons DBCP
- Version 2.5.0
- RELEASE NOTES
+ Version 2.5.0
+ RELEASE NOTES
The Apache Commons DBCP team is pleased to announce the release of Apache Apache Commons DBCP 2.5.0.
@@ -184,8 +265,8 @@ Download from https://commons.apache.org/proper/commons-dbcp/download_dbcp.cgi
Download page: https://commons.apache.org/dbcp/download_dbcp.cgi
Apache Apache Commons DBCP
- Version 2.4.0
- RELEASE NOTES
+ Version 2.4.0
+ RELEASE NOTES
The Apache Commons DBCP team is pleased to announce the release of Apache Apache Commons DBCP 2.4.0.
@@ -224,8 +305,8 @@ Download from https://commons.apache.org/proper/commons-dbcp/download_dbcp.cgi
-----------------------------------------------------------------------------
Apache Apache Commons DBCP
- Version 2.3.0
- RELEASE NOTES
+ Version 2.3.0
+ RELEASE NOTES
The Apache Commons DBCP team is pleased to announce the release of Apache Apache Commons DBCP 2.3.0.
@@ -257,8 +338,8 @@ Download from https://commons.apache.org/proper/commons-dbcp/download_dbcp.cgi
-----------------------------------------------------------------------------
Apache Apache Commons DBCP
- Version 2.2.0
- RELEASE NOTES
+ Version 2.2.0
+ RELEASE NOTES
The Apache Commons DBCP team is pleased to announce the release of Apache Apache Commons DBCP 2.2.0.
@@ -321,8 +402,8 @@ Download from https://commons.apache.org/proper/commons-dbcp/download_dbcp.cgi
-----------------------------------------------------------------------------
Apache Apache Commons DBCP
- Version 2.1.1
- RELEASE NOTES
+ Version 2.1.1
+ RELEASE NOTES
The Apache Commons DBCP team is pleased to announce the release of Apache Apache Commons DBCP 2.1.1.
diff --git a/src/changes/release-notes.vm b/src/changes/release-notes.vm
index 9a3c50d..d71fed1 100644
--- a/src/changes/release-notes.vm
+++ b/src/changes/release-notes.vm
@@ -15,8 +15,8 @@
## specific language governing permissions and limitations
## under the License.
Apache ${project.name}
- Version ${version}
- RELEASE NOTES
+ Version ${version}
+ RELEASE NOTES
The ${developmentTeam} is pleased to announce the release of Apache ${project.name} ${version}.
@@ -107,3 +107,5 @@ patches, or suggestions for improvement, see the Apache ${project.name} website:
${project.url}
Download page: ${project.url}download_dbcp.cgi
+
+-----------------------------------------------------------------------------