svn commit: r559315 - /jakarta/commons/proper/dbcp/trunk/project.xml
Author: psteitz Date: Tue Jul 24 21:45:13 2007 New Revision: 559315 URL: http://svn.apache.org/viewvc?view=revrev=559315 Log: Added transitive dependencies needed by m1 build. Modified: jakarta/commons/proper/dbcp/trunk/project.xml Modified: jakarta/commons/proper/dbcp/trunk/project.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/project.xml?view=diffrev=559315r1=559314r2=559315 == --- jakarta/commons/proper/dbcp/trunk/project.xml (original) +++ jakarta/commons/proper/dbcp/trunk/project.xml Tue Jul 24 21:45:13 2007 @@ -210,6 +210,18 @@ commentOnly required for managed connections tests/comment /properties /dependency + +dependency + groupIdorg.apache.geronimo.specs/groupId + artifactIdgeronimo-ejb_2.1_spec/artifactId + version1.1/version +/dependency + +dependency + groupIdbackport-util-concurrent/groupId + artifactIdbackport-util-concurrent/artifactId + version2.2/version +/dependency !-- tomcat naming jars for jndi reference tests -- dependency - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r558551 - in /jakarta/commons/sandbox/performance/trunk: ./ src/java/org/apache/commons/performance/ src/java/org/apache/commons/performance/dbcp/
Author: psteitz Date: Sun Jul 22 14:19:48 2007 New Revision: 558551 URL: http://svn.apache.org/viewvc?view=revrev=558551 Log: Moved ConfigurationException to performance package Renamed build.xml, config.xml to *-dbcp Made peak and min mean load both configurable Fixed some errors in ClientThread delay method Added: jakarta/commons/sandbox/performance/trunk/build-dbcp.xml - copied unchanged from r557160, jakarta/commons/sandbox/performance/trunk/build.xml jakarta/commons/sandbox/performance/trunk/config-dbcp.xml - copied, changed from r557160, jakarta/commons/sandbox/performance/trunk/config.xml jakarta/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ConfigurationException.java Removed: jakarta/commons/sandbox/performance/trunk/build.xml jakarta/commons/sandbox/performance/trunk/config.xml jakarta/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/dbcp/ConfigurationException.java Modified: jakarta/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java jakarta/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/dbcp/DBCPClientThread.java jakarta/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/dbcp/DBCPSoak.java Copied: jakarta/commons/sandbox/performance/trunk/config-dbcp.xml (from r557160, jakarta/commons/sandbox/performance/trunk/config.xml) URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/performance/trunk/config-dbcp.xml?view=diffrev=558551p1=jakarta/commons/sandbox/performance/trunk/config.xmlr1=557160p2=jakarta/commons/sandbox/performance/trunk/config-dbcp.xmlr2=558551 == --- jakarta/commons/sandbox/performance/trunk/config.xml (original) +++ jakarta/commons/sandbox/performance/trunk/config-dbcp.xml Sun Jul 22 14:19:48 2007 @@ -72,7 +72,8 @@ query-typeintegerIndexed/query-type iterations1000/iterations clients50/clients -delay-mean250/delay-mean +delay-min250/delay-min +delay-max500/delay-max delay-sigma50/delay-sigma !-- constant, gaussian, or poisson -- delay-typegaussian/delay-type Modified: jakarta/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java?view=diffrev=558551r1=558550r2=558551 == --- jakarta/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java (original) +++ jakarta/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java Sun Jul 22 14:19:48 2007 @@ -36,8 +36,10 @@ /** Number of iterations */ protected long iterations; -/** Mean time between requests */ -protected long delay; +/** Minimum mean time between requests */ +protected long minDelay; +/** Maxiimum mean time between requests */ +protected long maxDelay; /** Standard deviation of delay distribution */ protected double sigma; /** Delay type - determines how next start times are computed */ @@ -67,19 +69,21 @@ * Create a client thread. * * @param iterations number of iterations - * @param delay mean time between client requests + * @param minDelay minumum mean time between client requests + * @param maxDelay maximum mean time between client requests * @param delayType distribution of time between client requests * @param period period of cycle for cyclic load * @param cycleType type of cycle for mean delay * @param logger common logger shared by all clients * @param statsList List of SummaryStatistics to add results to */ -public ClientThread(long iterations, long delay, double sigma, -String delayType, long period, String cycleType, -String rampType, Logger logger, +public ClientThread(long iterations, long minDelay, long maxDelay, +double sigma, String delayType, long period, String cycleType, +String rampType, Logger logger, List SummaryStatistics statsList) { this.iterations = iterations; -this.delay = delay; +this.minDelay = minDelay; +this.maxDelay = maxDelay; this.sigma = sigma; this.delayType = delayType; this.period = period; @@ -105,7 +109,7 @@ SummaryStatistics stats = new SummaryStatisticsImpl(); randomData = new RandomDataImpl(); periodStart = System.currentTimeMillis(); -lastMean = (double) (2 * delay); // Ramp up, if any, starts here +lastMean = (double) maxDelay; // Ramp up, if any, starts here for (int i = 0; i iterations; i++) { try { setup
svn commit: r558588 - /jakarta/commons/sandbox/performance/trunk/build-dbcp.xml
Author: psteitz Date: Sun Jul 22 19:37:09 2007 New Revision: 558588 URL: http://svn.apache.org/viewvc?view=revrev=558588 Log: Fixed config file name. Modified: jakarta/commons/sandbox/performance/trunk/build-dbcp.xml Modified: jakarta/commons/sandbox/performance/trunk/build-dbcp.xml URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/performance/trunk/build-dbcp.xml?view=diffrev=558588r1=558587r2=558588 == --- jakarta/commons/sandbox/performance/trunk/build-dbcp.xml (original) +++ jakarta/commons/sandbox/performance/trunk/build-dbcp.xml Sun Jul 22 19:37:09 2007 @@ -105,7 +105,7 @@ classpath refid=compile.classpath/ compilerarg value=-Xlint:unchecked / /javac -copy file=${basedir}/config.xml tofile=${build}/config.xml/ +copy file=${basedir}/config-dbcp.xml tofile=${build}/config-dbcp.xml/ copy file=${basedir}/logging.properties tofile=${build}/logging.properties/ /target - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r558593 - in /jakarta/commons/sandbox/performance/trunk: ./ src/java/org/apache/commons/performance/pool/
Author: psteitz Date: Sun Jul 22 20:21:37 2007 New Revision: 558593 URL: http://svn.apache.org/viewvc?view=revrev=558593 Log: Initial commit - pool + README Added: jakarta/commons/sandbox/performance/trunk/README.txt jakarta/commons/sandbox/performance/trunk/build-pool.xml jakarta/commons/sandbox/performance/trunk/config-pool.xml jakarta/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/pool/ jakarta/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/pool/PoolClientThread.java jakarta/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/pool/PoolSoak.java jakarta/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/pool/PoolTest.java jakarta/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/pool/Waiter.java jakarta/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/pool/WaiterFactory.java Added: jakarta/commons/sandbox/performance/trunk/README.txt URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/performance/trunk/README.txt?view=autorev=558593 == --- jakarta/commons/sandbox/performance/trunk/README.txt (added) +++ jakarta/commons/sandbox/performance/trunk/README.txt Sun Jul 22 20:21:37 2007 @@ -0,0 +1,54 @@ +=== Compiling and running === + +To run the dbcp tests, edit configuration in config-dbcp.xml, make sure the +configured database is running and accepting connections, and run +ant -f build-dbcp.xml. The first time you run against a configured database, +a table with 1 rows will be created and populated with random data. +You also need to specify the path to the jdbc driver jar in build.properties. +Edit logging.properties to provide a real path for the log file or otherwise +clean up the filespec there. + +To run the pool tests, use config-pool.xml and ant -f build-pool.xml and +again edit logging.properties to direct the log file. + +=== Parameters === + +In addition to pool / dbcp parameters, the client request frequency and other +parameters can be set. These are (poorly) documented in the config files or +in javadoc for the ClientThread or other classes. The min-delay and max-delay +determine how frequently client threads will submit requests. In the simplest +case, if delay-type is constant, the client will try to submit a request every +min-delay milliseconds. Ramping and oscillating loads are also supported. See +the javadoc for ClientThread.nextDelay for details. + +=== Statistics === + +Runs consist of client threads submitting requests in a loop, with configurable +delays in between. Statistics on latency of the core request operation are +gathered by thread and overall. The number of misses reported per thread +is the number of times that the request operation itself took longer than the +presribed interarrival time for the thread (e.g. the thread is supposed to send +one request each 100ms, but it has to wait 150ms for a response). If the number +of misses is a significant percentage of the number of iterations, you should +consider increasing the number of service nodes (pool maxActive) or decreasing +the delay-min / delay-max. + +=== TODO === + +* Property representation and management is poor. Configuration objects should + be defined and Digester should create and populate configuration beans. + +* There is still a fair amount of duplicated / similar code between pool and + dbcp. This should all be factored out and moved to the performance package. + +* Ant build is lame. To change pool impls used - e.g. to grab latest snap - + you need to hack the get-deps. This should be cleaned up. + +* More pool types need to be supported. + +* WaiterFactory should support stochastic latencies for lifecycle methods + similar to ClientThread.nextDelay. Probably nextDelay belongs in a separate + latency generation class. + +* TESTS!!! There are no Junit tests. wtf? + Added: jakarta/commons/sandbox/performance/trunk/build-pool.xml URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/performance/trunk/build-pool.xml?view=autorev=558593 == --- jakarta/commons/sandbox/performance/trunk/build-pool.xml (added) +++ jakarta/commons/sandbox/performance/trunk/build-pool.xml Sun Jul 22 20:21:37 2007 @@ -0,0 +1,116 @@ +!-- +/* + * 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
svn commit: r558331 - /jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingConnection.java
Author: psteitz Date: Sat Jul 21 08:44:03 2007 New Revision: 558331 URL: http://svn.apache.org/viewvc?view=revrev=558331 Log: Fixed typo in comment. Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingConnection.java Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingConnection.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingConnection.java?view=diffrev=558331r1=558330r2=558331 == --- jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingConnection.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingConnection.java Sat Jul 21 08:44:03 2007 @@ -211,7 +211,7 @@ public void close() throws SQLException { // close can be called multiple times, but PoolableConnection improperly // throws an exception when a connection is closed twice, so before calling -// close we aren't alreayd closed +// close we aren't already closed if (!isClosed()) { try { _conn.close(); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r558332 - in /jakarta/commons/proper/dbcp/trunk/src: java/org/apache/commons/dbcp/ test/org/apache/commons/dbcp/ test/org/apache/commons/dbcp/datasources/ test/org/apache/commons/dbcp/mana
Author: psteitz Date: Sat Jul 21 08:48:19 2007 New Revision: 558332 URL: http://svn.apache.org/viewvc?view=revrev=558332 Log: Modified PoolingDataSource, PoolingDriver and DelegatingStatement to assure that all all returned Statements, PreparedStatements, CallableStatements and ResultSets are wrapped with a delegating object, which already properly handle the back pointers for Connection and Statement. Also added tests to to assure that the *same* object used to create the statement or result set is returned from either getConnection() or getStatement(). JIRA: DBCP-11 Patch provided by Dain Sundstrom Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingStatement.java jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDataSource.java jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDriver.java jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestConnectionPool.java jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TesterConnection.java jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TesterPreparedStatement.java jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TesterStatement.java jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestSharedPoolDataSource.java jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/managed/TestManagedDataSourceInTx.java Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingStatement.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingStatement.java?view=diffrev=558332r1=558331r2=558332 == --- jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingStatement.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingStatement.java Sat Jul 21 08:48:19 2007 @@ -314,8 +314,15 @@ public boolean getMoreResults(int current) throws SQLException { checkOpen(); try { return _stmt.getMoreResults(current); } catch (SQLException e) { handleException(e); return false; } } -public ResultSet getGeneratedKeys() throws SQLException -{ checkOpen(); try { return _stmt.getGeneratedKeys(); } catch (SQLException e) { handleException(e); return null; } } +public ResultSet getGeneratedKeys() throws SQLException { +checkOpen(); +try { +return DelegatingResultSet.wrapResultSet(this, _stmt.getGeneratedKeys()); +} catch (SQLException e) { +handleException(e); +return null; +} +} public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException { checkOpen(); try { return _stmt.executeUpdate(sql, autoGeneratedKeys); } catch (SQLException e) { handleException(e); return 0; } } Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDataSource.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDataSource.java?view=diffrev=558332r1=558331r2=558332 == --- jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDataSource.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDataSource.java Sat Jul 21 08:48:19 2007 @@ -203,12 +203,12 @@ public Statement createStatement() throws SQLException { checkOpen(); -return delegate.createStatement(); +return new DelegatingStatement(this, delegate.createStatement()); } public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException { checkOpen(); -return delegate.createStatement(resultSetType, resultSetConcurrency); +return new DelegatingStatement(this, delegate.createStatement(resultSetType, resultSetConcurrency)); } public boolean innermostDelegateEquals(Connection c) { @@ -290,22 +290,22 @@ public CallableStatement prepareCall(String sql) throws SQLException { checkOpen(); -return delegate.prepareCall(sql); +return new DelegatingCallableStatement(this, delegate.prepareCall(sql)); } public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { checkOpen(); -return delegate.prepareCall(sql, resultSetType, resultSetConcurrency); +return new DelegatingCallableStatement(this, delegate.prepareCall(sql, resultSetType
svn commit: r558334 - /jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml
Author: psteitz Date: Sat Jul 21 08:52:02 2007 New Revision: 558334 URL: http://svn.apache.org/viewvc?view=revrev=558334 Log: Document change in r558332. Modified: jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml?view=diffrev=558334r1=558333r2=558334 == --- jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml (original) +++ jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Sat Jul 21 08:52:02 2007 @@ -69,6 +69,15 @@ updated any tests that incorrectly assert that a resource can not be closed more then once. Fixes DBCP-3, DBCP-5, DBCP-23 and DBCP-134. /action + action dev=psteitz type=fix issue=DBCP-11 due-to=Dain Sundstrom +Modified PoolingDataSource, PoolingDriver and DelegatingStatement to +assure that all all returned Statements, PreparedStatements, +CallableStatements and ResultSets are wrapped with a delegating object, +which already properly handle the back pointers for Connection and +Statement. Also added tests to to assure that the *same* object used +to create the statement or result set is returned from either +getConnection() or getStatement(). + /action /release release version=1.2.2 date=2007-04-04 description=This is a maintenance release containing bug fixes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r558377 - /jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
Author: psteitz Date: Sat Jul 21 13:19:21 2007 New Revision: 558377 URL: http://svn.apache.org/viewvc?view=revrev=558377 Log: Added warning in GenericObjectPool returnObject javadoc about dangers of multiple returns on same object. JIRA: DBCP-94 Modified: jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java Modified: jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java?view=diffrev=558377r1=558376r2=558377 == --- jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java (original) +++ jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java Sat Jul 21 13:19:21 2007 @@ -95,7 +95,7 @@ * p * Optionally, one may configure the pool to examine and possibly evict objects as they * sit idle in the pool. This is performed by an idle object eviction thread, which - * runs asychronously. The idle object eviction thread may be configured using the + * runs asynchronously. The idle object eviction thread may be configured using the * following attributes: * ul * li @@ -958,6 +958,16 @@ return _pool.size(); } +/** + * [EMAIL PROTECTED] + * pstrongNote: /strong There is no guard to prevent an object + * being returned to the pool multiple times. Clients are expected to + * discard references to returned objects and ensure that an object is not + * returned to the pool multiple times in sequence (i.e., without being + * borrowed again between returns). Violating this contract will result in + * the same object appearing multiple times in the pool and pool counters + * (numActive, numIdle) returning incorrect values./p + */ public synchronized void returnObject(Object obj) throws Exception { try { addObjectToPool(obj, true); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn propchange: r558377 - svn:log
Author: psteitz Revision: 558377 Modified property: svn:log Modified: svn:log at Sat Jul 21 13:27:21 2007 -- --- svn:log (original) +++ svn:log Sat Jul 21 13:27:21 2007 @@ -1,4 +1,4 @@ Added warning in GenericObjectPool returnObject javadoc about dangers of multiple returns on same object. -JIRA: DBCP-94 +JIRA: POOL-94 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r558393 - /jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java
Author: psteitz Date: Sat Jul 21 16:43:04 2007 New Revision: 558393 URL: http://svn.apache.org/viewvc?view=revrev=558393 Log: Added test to verify that maxWait = 0 means immediate failure for PerUserPoolDataSource, per javadoc (different from BasicDataSource). Modified: jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java Modified: jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java?view=diffrev=558393r1=558392r2=558393 == --- jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java Sat Jul 21 16:43:04 2007 @@ -305,6 +305,23 @@ } } +/** + * Verify that defaultMaxWait = 0 means immediate failure when + * pool is exhausted. + */ +public void testMaxWaitZero() throws Exception { +PerUserPoolDataSource tds = (PerUserPoolDataSource) ds; +tds.setDefaultMaxWait(0); +tds.setPerUserMaxActive(u1, new Integer(1)); +Connection conn = tds.getConnection(u1, p1); +try { +Connection conn2 = tds.getConnection(u1, p1); +fail(Expecting Pool Exhausted exception); +} catch (SQLException ex) { +// expected +} +} + public void testPerUserMethods() throws Exception { PerUserPoolDataSource tds = (PerUserPoolDataSource) ds; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r558394 - /jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java
Author: psteitz Date: Sat Jul 21 16:46:27 2007 New Revision: 558394 URL: http://svn.apache.org/viewvc?view=revrev=558394 Log: Fixed javadoc to match behavior when BasicDataSource maxWait is 0 (blocks indefinitely). JIRA: POOL-232 Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java?view=diffrev=558394r1=558393r2=558394 == --- jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java Sat Jul 21 16:46:27 2007 @@ -341,7 +341,7 @@ /** * The maximum number of milliseconds that the pool will wait (when there * are no available connections) for a connection to be returned before - * throwing an exception, or -1 to wait indefinitely. + * throwing an exception, or = 0 to wait indefinitely. */ protected long maxWait = GenericObjectPool.DEFAULT_MAX_WAIT; @@ -349,7 +349,8 @@ * pReturns the maximum number of milliseconds that the pool will wait * for a connection to be returned before throwing an exception. * /p - * pReturns -1 if the pool is set to wait indefinitely./p + * pA value less than or equal to zero means the pool is set to wait + * indefinitely./p * * @return the maxWait property value */ @@ -358,7 +359,10 @@ } /** - * Sets the maxWait property. + * pSets the maxWait property. + * /p + * pUse -1 to make the pool wait indefinitely. + * /p * * @param maxWait the new value for maxWait * @see #getMaxWait() - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r558397 - in /jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl: GenericKeyedObjectPool.java GenericObjectPool.java
Author: psteitz Date: Sat Jul 21 16:49:26 2007 New Revision: 558397 URL: http://svn.apache.org/viewvc?view=revrev=558397 Log: Fixed javadoc to match behavior when maxWait is 0 (blocks indefinitely if exhausted action is block). Modified: jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java Modified: jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java?view=diffrev=558397r1=558396r2=558397 == --- jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java (original) +++ jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java Sat Jul 21 16:49:26 2007 @@ -524,7 +524,7 @@ * [EMAIL PROTECTED] #setWhenExhaustedAction when exhausted action} is * [EMAIL PROTECTED] #WHEN_EXHAUSTED_BLOCK}. * - * When less than 0, the [EMAIL PROTECTED] #borrowObject} method + * When less than or equal to 0, the [EMAIL PROTECTED] #borrowObject} method * may block indefinitely. * * @return the maximum number of milliseconds borrowObject will block. @@ -543,7 +543,7 @@ * [EMAIL PROTECTED] #setWhenExhaustedAction when exhausted action} is * [EMAIL PROTECTED] #WHEN_EXHAUSTED_BLOCK}. * - * When less than 0, the [EMAIL PROTECTED] #borrowObject} method + * When less than or equal to 0, the [EMAIL PROTECTED] #borrowObject} method * may block indefinitely. * * @param maxWait the maximum number of milliseconds borrowObject will block or negative for indefinitely. @@ -1596,7 +1596,7 @@ * [EMAIL PROTECTED] #getWhenExhaustedAction when exhausted action} is * [EMAIL PROTECTED] #WHEN_EXHAUSTED_BLOCK}. * - * When less than 0, the [EMAIL PROTECTED] #borrowObject} method + * When less than or equal to 0, the [EMAIL PROTECTED] #borrowObject} method * may block indefinitely. * * @see #setMaxWait Modified: jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java?view=diffrev=558397r1=558396r2=558397 == --- jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java (original) +++ jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java Sat Jul 21 16:49:26 2007 @@ -511,7 +511,7 @@ * [EMAIL PROTECTED] #setWhenExhaustedAction when exhausted action} is * [EMAIL PROTECTED] #WHEN_EXHAUSTED_BLOCK}. * - * When less than 0, the [EMAIL PROTECTED] #borrowObject} method + * When less than or equal to 0, the [EMAIL PROTECTED] #borrowObject} method * may block indefinitely. * * @return maximum number of milliseconds to block when borrowing an object. @@ -530,7 +530,7 @@ * [EMAIL PROTECTED] #setWhenExhaustedAction when exhausted action} is * [EMAIL PROTECTED] #WHEN_EXHAUSTED_BLOCK}. * - * When less than 0, the [EMAIL PROTECTED] #borrowObject} method + * When less than or equal to 0, the [EMAIL PROTECTED] #borrowObject} method * may block indefinitely. * * @param maxWait maximum number of milliseconds to block when borrowing an object. @@ -1292,7 +1292,7 @@ * [EMAIL PROTECTED] #getWhenExhaustedAction when exhausted action} is * [EMAIL PROTECTED] #WHEN_EXHAUSTED_BLOCK}. * - * When less than 0, the [EMAIL PROTECTED] #borrowObject} method + * When less than or equal to 0, the [EMAIL PROTECTED] #borrowObject} method * may block indefinitely. * * @see #setMaxWait - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r558398 - /jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java
Author: psteitz Date: Sat Jul 21 16:53:32 2007 New Revision: 558398 URL: http://svn.apache.org/viewvc?view=revrev=558398 Log: Added missing close. Modified: jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java Modified: jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java?view=diffrev=558398r1=558397r2=558398 == --- jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java Sat Jul 21 16:53:32 2007 @@ -320,6 +320,7 @@ } catch (SQLException ex) { // expected } +conn.close(); } public void testPerUserMethods() throws Exception { - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r558450 - in /jakarta/commons/proper/math/trunk: src/java/org/apache/commons/math/distribution/NormalDistributionImpl.java src/test/org/apache/commons/math/distribution/NormalDistributionT
Author: psteitz Date: Sat Jul 21 19:33:08 2007 New Revision: 558450 URL: http://svn.apache.org/viewvc?view=revrev=558450 Log: Modified NormalDistributionImpl.cumulativeProbablity to catch MaxIterationsExceededException and return 0 or 1, resp. if the argument is more than 20 standard deviations from the mean. JIRA: MATH-167 Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/NormalDistributionImpl.java jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/NormalDistributionTest.java jakarta/commons/proper/math/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/NormalDistributionImpl.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/NormalDistributionImpl.java?view=diffrev=558450r1=558449r2=558450 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/NormalDistributionImpl.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/NormalDistributionImpl.java Sat Jul 21 19:33:08 2007 @@ -20,6 +20,7 @@ import java.io.Serializable; import org.apache.commons.math.MathException; +import org.apache.commons.math.MaxIterationsExceededException; import org.apache.commons.math.special.Erf; /** @@ -100,11 +101,23 @@ * For this disbution, X, this method returns P(X lt; codex/code). * @param x the value at which the CDF is evaluated. * @return CDF evaluted at codex/code. - * @throws MathException if the algorithm fails to converge. + * @throws MathException if the algorithm fails to converge; unless + * x is more than 20 standard deviations from the mean, in which case the + * convergence exception is caught and 0 or 1 is returned. */ public double cumulativeProbability(double x) throws MathException { -return 0.5 * (1.0 + Erf.erf((x - mean) / -(standardDeviation * Math.sqrt(2.0; +try { +return 0.5 * (1.0 + Erf.erf((x - mean) / +(standardDeviation * Math.sqrt(2.0; +} catch (MaxIterationsExceededException ex) { +if (x (mean - 20 * standardDeviation)) { // JDK 1.5 blows at 38 +return 0.0d; +} else if (x (mean + 20 * standardDeviation)) { +return 1.0d; +} else { +throw ex; +} +} } /** Modified: jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/NormalDistributionTest.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/NormalDistributionTest.java?view=diffrev=558450r1=558449r2=558450 == --- jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/NormalDistributionTest.java (original) +++ jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/NormalDistributionTest.java Sat Jul 21 19:33:08 2007 @@ -120,4 +120,26 @@ // Expected } } + +/** + * Check to make sure top-coding of extreme values works correctly. + * Verifies fix for JIRA MATH-167 + */ +public void testExtremeValues() throws Exception { +NormalDistribution distribution = (NormalDistribution) getDistribution(); +distribution.setMean(0); +distribution.setStandardDeviation(1); +for (int i = 0; i 100; i+=5) { // make sure no convergence exception +double lowerTail = distribution.cumulativeProbability((double)-i); +double upperTail = distribution.cumulativeProbability((double) i); +if (i 10) { // make sure not top-coded +assertTrue(lowerTail 0.0d); +assertTrue(upperTail 1.0d); +} +else { // make sure top coding not reversed +assertTrue(lowerTail 0.1); +assertTrue(upperTail 0.9); +} +} + } } Modified: jakarta/commons/proper/math/trunk/xdocs/changes.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/xdocs/changes.xml?view=diffrev=558450r1=558449r2=558450 == --- jakarta/commons/proper/math/trunk/xdocs/changes.xml (original) +++ jakarta/commons/proper/math/trunk/xdocs/changes.xml Sat Jul 21 19:33:08 2007 @@ -87,6 +87,11 @@ action dev=psteitz type=update issue=MATH-160 due-to Matthias Hummel Added two sample (binned comparison) ChiSquare test. /action + action dev=psteitz type=fix issue=MATH-167 +Modified NormalDistributionImpl.cumulativeProbablity to catch
svn commit: r557160 - in /jakarta/commons/sandbox/performance: branches/ build.properties build.xml config.xml logging.properties src/ tags/ trunk/ trunk/build.properties trunk/build.xml trunk/config.
Author: psteitz Date: Tue Jul 17 23:06:59 2007 New Revision: 557160 URL: http://svn.apache.org/viewvc?view=revrev=557160 Log: Fixed directory structure. Added: jakarta/commons/sandbox/performance/branches/ jakarta/commons/sandbox/performance/tags/ jakarta/commons/sandbox/performance/trunk/ jakarta/commons/sandbox/performance/trunk/build.properties - copied unchanged from r556823, jakarta/commons/sandbox/performance/build.properties jakarta/commons/sandbox/performance/trunk/build.xml - copied unchanged from r556823, jakarta/commons/sandbox/performance/build.xml jakarta/commons/sandbox/performance/trunk/config.xml - copied unchanged from r556823, jakarta/commons/sandbox/performance/config.xml jakarta/commons/sandbox/performance/trunk/logging.properties - copied unchanged from r556823, jakarta/commons/sandbox/performance/logging.properties jakarta/commons/sandbox/performance/trunk/src/ - copied from r556823, jakarta/commons/sandbox/performance/src/ Removed: jakarta/commons/sandbox/performance/build.properties jakarta/commons/sandbox/performance/build.xml jakarta/commons/sandbox/performance/config.xml jakarta/commons/sandbox/performance/logging.properties jakarta/commons/sandbox/performance/src/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r557162 - /jakarta/commons/trunks-sandbox/
Author: psteitz Date: Tue Jul 17 23:12:17 2007 New Revision: 557162 URL: http://svn.apache.org/viewvc?view=revrev=557162 Log: Adding performance to sandbox Modified: jakarta/commons/trunks-sandbox/ (props changed) Propchange: jakarta/commons/trunks-sandbox/ -- --- svn:externals (original) +++ svn:externals Tue Jul 17 23:12:17 2007 @@ -9,5 +9,6 @@ javaflow https://svn.apache.org/repos/asf/jakarta/commons/sandbox/javaflow/trunk js2j https://svn.apache.org/repos/asf/jakarta/commons/sandbox/js2j/trunk openpgp https://svn.apache.org/repos/asf/jakarta/commons/sandbox/openpgp/trunk +performance https://svn.apache.org/repos/asf/jakarta/commons/sandbox/performance/trunk pipeline https://svn.apache.org/repos/asf/jakarta/commons/sandbox/pipeline/trunk proxy https://svn.apache.org/repos/asf/jakarta/commons/sandbox/proxy/trunk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r557176 - in /jakarta/commons/proper/dbcp/trunk: src/java/org/apache/commons/dbcp/ src/java/org/apache/commons/dbcp/cpdsadapter/ src/test/org/apache/commons/dbcp/ src/test/org/apache/commo
Author: psteitz Date: Tue Jul 17 23:46:16 2007 New Revision: 557176 URL: http://svn.apache.org/viewvc?view=revrev=557176 Log: Changed behavior to allow Connection, Statement, PreparedStatement, CallableStatement and ResultSet to be closed multiple times. The first time close is called the resource is closed and any subsequent calls have no effect. This behavior is required as per the JavaDocs for these classes. Also added tests for closing all types multiple times and updated any tests that incorrectly assert that a resource can not be closed more then once. JIRA: DBCP-233 Patch provided by Dain Sundstrom Fixes DBCP-134, DBCP-3 Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingConnection.java jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolablePreparedStatement.java jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDataSource.java jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDriver.java jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/cpdsadapter/ConnectionImpl.java jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestConnectionPool.java jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestManual.java jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TesterResultSet.java jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TesterStatement.java jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/managed/TestManagedDataSource.java jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingConnection.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingConnection.java?view=diffrev=557176r1=557175r2=557176 == --- jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingConnection.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingConnection.java Tue Jul 17 23:46:16 2007 @@ -208,10 +208,17 @@ * Closes the underlying connection, and close * any Statements that were not explicitly closed. */ -public void close() throws SQLException -{ -passivate(); -_conn.close(); +public void close() throws SQLException { +// close can be called multiple times, but PoolableConnection improperly +// throws an exception when a connection is closed twice, so before calling +// close we aren't alreayd closed +if (!isClosed()) { +try { +_conn.close(); +} finally { +_closed = true; +} +} } protected void handleException(SQLException e) throws SQLException { Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolablePreparedStatement.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolablePreparedStatement.java?view=diffrev=557176r1=557175r2=557176 == --- jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolablePreparedStatement.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolablePreparedStatement.java Tue Jul 17 23:46:16 2007 @@ -72,9 +72,8 @@ * Return me to my pool. */ public void close() throws SQLException { -if(isClosed()) { -throw new SQLException(Already closed); -} else { +// calling close twice should have no effect +if (!isClosed()) { try { _pool.returnObject(_key,this); } catch(SQLException e) { Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDataSource.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDataSource.java?view=diffrev=557176r1=557175r2=557176 == --- jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDataSource.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDataSource.java Tue Jul 17 23:46:16 2007 @@ -177,10 +177,11 @@ } public void close() throws SQLException { -checkOpen(); -this.delegate.close(); -this.delegate = null; -super.setDelegate(null); +if (delegate != null) { +this.delegate.close(); +this.delegate = null; +super.setDelegate(null); +} } public boolean
svn commit: r557488 - /jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml
Author: psteitz Date: Wed Jul 18 21:22:23 2007 New Revision: 557488 URL: http://svn.apache.org/viewvc?view=revrev=557488 Log: Added other boogs slain in r557176. Modified: jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml?view=diffrev=557488r1=557487r2=557488 == --- jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml (original) +++ jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Wed Jul 18 21:22:23 2007 @@ -67,7 +67,7 @@ have no effect. This behavior is required as per the JavaDocs for these classes. Also added tests for closing all types multiple times and updated any tests that incorrectly assert that a resource can not be -closed more then once. Fixes DBCP-134 and DBCP-3. +closed more then once. Fixes DBCP-3, DBCP-5, DBCP-23 and DBCP-134. /action /release release version=1.2.2 date=2007-04-04 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r556823 - in /jakarta/commons/sandbox/performance: ./ src/ src/java/ src/java/org/ src/java/org/apache/ src/java/org/apache/commons/ src/java/org/apache/commons/performance/ src/java/org/a
Author: psteitz Date: Mon Jul 16 23:11:36 2007 New Revision: 556823 URL: http://svn.apache.org/viewvc?view=revrev=556823 Log: Initial Commit. Added: jakarta/commons/sandbox/performance/ jakarta/commons/sandbox/performance/build.properties jakarta/commons/sandbox/performance/build.xml jakarta/commons/sandbox/performance/config.xml jakarta/commons/sandbox/performance/logging.properties jakarta/commons/sandbox/performance/src/ jakarta/commons/sandbox/performance/src/java/ jakarta/commons/sandbox/performance/src/java/org/ jakarta/commons/sandbox/performance/src/java/org/apache/ jakarta/commons/sandbox/performance/src/java/org/apache/commons/ jakarta/commons/sandbox/performance/src/java/org/apache/commons/performance/ jakarta/commons/sandbox/performance/src/java/org/apache/commons/performance/ClientThread.java jakarta/commons/sandbox/performance/src/java/org/apache/commons/performance/dbcp/ jakarta/commons/sandbox/performance/src/java/org/apache/commons/performance/dbcp/ConfigurationException.java jakarta/commons/sandbox/performance/src/java/org/apache/commons/performance/dbcp/DBCPClientThread.java jakarta/commons/sandbox/performance/src/java/org/apache/commons/performance/dbcp/DBCPSoak.java jakarta/commons/sandbox/performance/src/java/org/apache/commons/performance/dbcp/DBCPTest.java Added: jakarta/commons/sandbox/performance/build.properties URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/performance/build.properties?view=autorev=556823 == --- jakarta/commons/sandbox/performance/build.properties (added) +++ jakarta/commons/sandbox/performance/build.properties Mon Jul 16 23:11:36 2007 @@ -0,0 +1,24 @@ +### +# +# 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. +### + +# Remote maven repository +mavenRepo=http://repo1.maven.org/maven2 + +# JDBC driver +jdbc-jar=/home/phil/mysql/mysql-connector-java-5.0.2.jar + Added: jakarta/commons/sandbox/performance/build.xml URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/performance/build.xml?view=autorev=556823 == --- jakarta/commons/sandbox/performance/build.xml (added) +++ jakarta/commons/sandbox/performance/build.xml Mon Jul 16 23:11:36 2007 @@ -0,0 +1,124 @@ +!-- +/* + * 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. + */ + -- + +project name=DBCPTest default=run basedir=. + + property name=src location=src/ + property name=build location=build/ + property name=lib location=lib/ + + property name=component-propfile value=${basedir}/build.properties/ + property file=${component-propfile}/ + + path id=compile.classpath +pathelement location=${jdbc-jar}/ +fileset dir=${lib} + include name=*.jar/ +/fileset + /path + + path id=run.classpath +pathelement path=${build}/ +pathelement path=${java.class.path}/ +path refid=compile.classpath / + /path + + target name=init +mkdir dir=${build}/ +mkdir dir=${lib}/ + /target + + target name=get-collections +get + src=${mavenRepo}/commons-collections/commons-collections/3.1/commons-collections-3.1.jar +dest=${lib}/commons-collections-3.1.jar +usetimestamp=true/ + /target
svn commit: r556484 - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/RandomDataImpl.java
Author: psteitz Date: Sun Jul 15 18:20:12 2007 New Revision: 556484 URL: http://svn.apache.org/viewvc?view=revrev=556484 Log: Corrected error in exception text. Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/RandomDataImpl.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/RandomDataImpl.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/RandomDataImpl.java?view=diffrev=556484r1=556483r2=556484 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/RandomDataImpl.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/RandomDataImpl.java Sun Jul 15 18:20:12 2007 @@ -380,7 +380,7 @@ public double nextUniform(double lower, double upper) { if (lower = upper) { throw new IllegalArgumentException -(lower bound must be = upper bound); +(lower bound must be upper bound); } RandomGenerator rand = getRan(); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r556485 - /jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/random/RandomDataTest.java
Author: psteitz Date: Sun Jul 15 18:21:45 2007 New Revision: 556485 URL: http://svn.apache.org/viewvc?view=revrev=556485 Log: Added test to confirm that nextUniform excludes endpoints. Modified: jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/random/RandomDataTest.java Modified: jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/random/RandomDataTest.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/random/RandomDataTest.java?view=diffrev=556485r1=556484r2=556485 == --- jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/random/RandomDataTest.java (original) +++ jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/random/RandomDataTest.java Sun Jul 15 18:21:45 2007 @@ -367,6 +367,14 @@ testStatistic.chiSquare(expected,observed) 10.83); } +/** test exclusive endpoints of nextUniform **/ +public void testNextUniformExclusiveEndpoints() { +for (int i = 0; i 1000; i++) { +double u = randomData.nextUniform(0.99, 1); +assertTrue(u 0.99 u 1); +} +} + /** test failure modes and distribution of nextGaussian() */ public void testNextGaussian() { try { - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r555985 - in /jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp: BasicDataSource.java managed/BasicManagedDataSource.java
Author: psteitz Date: Fri Jul 13 06:27:11 2007 New Revision: 555985 URL: http://svn.apache.org/viewvc?view=revrev=555985 Log: Fixed spelling error in method name. Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/managed/BasicManagedDataSource.java Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java?view=diffrev=555985r1=555984r2=555985 == --- jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java Fri Jul 13 06:27:11 2007 @@ -1136,7 +1136,7 @@ } // create factory which returns raw physical connections -ConnectionFactory driverConnectionFactory = createConectionFactory(); +ConnectionFactory driverConnectionFactory = createConnectionFactory(); // create a pool for our connections createConnectionPool(); @@ -1193,7 +1193,7 @@ * Creates a connection factory for this datasource. This method only * exists so subclasses can replace the implementation class. */ -protected ConnectionFactory createConectionFactory() throws SQLException { +protected ConnectionFactory createConnectionFactory() throws SQLException { // Load the JDBC driver class if (driverClassName != null) { try { Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/managed/BasicManagedDataSource.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/managed/BasicManagedDataSource.java?view=diffrev=555985r1=555984r2=555985 == --- jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/managed/BasicManagedDataSource.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/managed/BasicManagedDataSource.java Fri Jul 13 06:27:11 2007 @@ -89,14 +89,14 @@ this.xaDataSource = xaDataSource; } -protected ConnectionFactory createConectionFactory() throws SQLException { +protected ConnectionFactory createConnectionFactory() throws SQLException { if (transactionManager == null) { throw new SQLException(Transaction manager must be set before a connection can be created); } // If xa data source is not specified a DriverConnectionFactory is created and wrapped with a LocalXAConnectionFactory if (xaDataSource == null) { -ConnectionFactory connectionFactory = super.createConectionFactory(); +ConnectionFactory connectionFactory = super.createConnectionFactory(); XAConnectionFactory xaConnectionFactory = new LocalXAConnectionFactory(getTransactionManager(), connectionFactory); transactionRegistry = xaConnectionFactory.getTransactionRegistry(); return xaConnectionFactory; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r555980 - in /jakarta/commons/proper/dbcp/trunk: src/java/org/apache/commons/dbcp/ src/java/org/apache/commons/dbcp/managed/ xdocs/
Author: psteitz Date: Fri Jul 13 06:10:05 2007 New Revision: 555980 URL: http://svn.apache.org/viewvc?view=revrev=555980 Log: Added BasicManagedDataSource, extending BasicDataSource. Also improved extensibility of BasicDataSource by encapsulating methods to create object pool, connection factory and datasource instance previously embedded in createDataSource. JIRA: DBCP-230 Patch provided by Dain Sundstrom Added: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/managed/BasicManagedDataSource.java Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/managed/DataSourceXAConnectionFactory.java jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java?view=diffrev=555980r1=555979r2=555980 == --- jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java Fri Jul 13 06:10:05 2007 @@ -1135,6 +1135,65 @@ return (dataSource); } +// create factory which returns raw physical connections +ConnectionFactory driverConnectionFactory = createConectionFactory(); + +// create a pool for our connections +createConnectionPool(); + +// Set up statement pool, if desired +GenericKeyedObjectPoolFactory statementPoolFactory = null; +if (isPoolPreparedStatements()) { +statementPoolFactory = new GenericKeyedObjectPoolFactory(null, +-1, // unlimited maxActive (per key) +GenericKeyedObjectPool.WHEN_EXHAUSTED_FAIL, +0, // maxWait +1, // maxIdle (per key) +maxOpenPreparedStatements); +} + +// Set up the poolable connection factory we will use +PoolableConnectionFactory connectionFactory = null; +try { +connectionFactory = +new PoolableConnectionFactory(driverConnectionFactory, + connectionPool, + statementPoolFactory, + validationQuery, + defaultReadOnly, + defaultAutoCommit, + defaultTransactionIsolation, + defaultCatalog, + abandonedConfig); +if (connectionFactory == null) { +throw new SQLException(Cannot create PoolableConnectionFactory); +} +validateConnectionFactory(connectionFactory); +} catch (RuntimeException e) { +throw e; +} catch (Exception e) { +throw new SQLNestedException(Cannot create PoolableConnectionFactory ( + e.getMessage() + ), e); +} + +// Create and return the pooling data source to manage the connections +createDataSourceInstance(); + +try { +for (int i = 0 ; i initialSize ; i++) { +connectionPool.addObject(); +} +} catch (Exception e) { +throw new SQLNestedException(Error preloading the connection pool, e); +} + +return dataSource; +} + +/** + * Creates a connection factory for this datasource. This method only + * exists so subclasses can replace the implementation class. + */ +protected ConnectionFactory createConectionFactory() throws SQLException { // Load the JDBC driver class if (driverClassName != null) { try { @@ -1154,7 +1213,7 @@ driver = DriverManager.getDriver(url); } catch (Throwable t) { String message = Cannot create JDBC driver of class ' + -(driverClassName != null ? driverClassName : ) + +(driverClassName != null ? driverClassName : ) + ' for connect URL ' + url + '; logWriter.println(message); t.printStackTrace(logWriter); @@ -1168,6 +1227,28 @@ setTestWhileIdle(false); } +// Set up the driver connection factory we will use +if (username != null) { +connectionProperties.put(user, username); +} else { +log(DBCP DataSource configured without a 'username'); +} + +if (password != null) { +connectionProperties.put(password
svn commit: r554220 - /jakarta/commons/proper/math/trunk/project.xml
Author: psteitz Date: Sat Jul 7 08:36:23 2007 New Revision: 554220 URL: http://svn.apache.org/viewvc?view=revrev=554220 Log: Added recent contributors. Modified: jakarta/commons/proper/math/trunk/project.xml Modified: jakarta/commons/proper/math/trunk/project.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/project.xml?view=diffrev=554220r1=554219r2=554220 == --- jakarta/commons/proper/math/trunk/project.xml (original) +++ jakarta/commons/proper/math/trunk/project.xml Sat Jul 7 08:36:23 2007 @@ -162,10 +162,16 @@ nameRodrigo di Lorenzo Lopes/name /contributor contributor + nameHasan Diwan/name +/contributor +contributor nameKen Geis/name /contributor contributor nameElliotte Rusty Harold/name +/contributor +contributor + nameMatthias Hummel/name /contributor contributor namePiotr Kochanski/name - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r554224 - /jakarta/commons/proper/math/trunk/pom.xml
Author: psteitz Date: Sat Jul 7 09:17:34 2007 New Revision: 554224 URL: http://svn.apache.org/viewvc?view=revrev=554224 Log: Added recent contributors - should have been in r554220. Modified: jakarta/commons/proper/math/trunk/pom.xml Modified: jakarta/commons/proper/math/trunk/pom.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/pom.xml?view=diffrev=554224r1=554223r2=554224 == --- jakarta/commons/proper/math/trunk/pom.xml (original) +++ jakarta/commons/proper/math/trunk/pom.xml Sat Jul 7 09:17:34 2007 @@ -104,10 +104,16 @@ nameRodrigo di Lorenzo Lopes/name /contributor contributor + nameHasan Diwan/name +/contributor +contributor nameKen Geis/name /contributor contributor nameElliotte Rusty Harold/name +/contributor +contributor + nameMatthias Hummel/name /contributor contributor namePiotr Kochanski/name - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r553747 - in /jakarta/commons/proper/dbcp/trunk: pom.xml src/site/ src/site/site.xml
Author: psteitz Date: Thu Jul 5 23:04:45 2007 New Revision: 553747 URL: http://svn.apache.org/viewvc?view=revrev=553747 Log: Updates / fixes to get site generation working on Maven 2 - Added site.xml based on navigation.xml POM fixes: - Updated version to 1.3-SNAPSHOT - Added reporting section - Updated commons parent version Added: jakarta/commons/proper/dbcp/trunk/src/site/ jakarta/commons/proper/dbcp/trunk/src/site/site.xml Modified: jakarta/commons/proper/dbcp/trunk/pom.xml Modified: jakarta/commons/proper/dbcp/trunk/pom.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/pom.xml?view=diffrev=553747r1=553746r2=553747 == --- jakarta/commons/proper/dbcp/trunk/pom.xml (original) +++ jakarta/commons/proper/dbcp/trunk/pom.xml Thu Jul 5 23:04:45 2007 @@ -22,12 +22,12 @@ parent groupIdorg.apache.commons/groupId artifactIdcommons-parent/artifactId -version1/version +version2/version /parent modelVersion4.0.0/modelVersion groupIdcommons-dbcp/groupId artifactIdcommons-dbcp/artifactId - version1.2.2/version + version1.3-SNAPSHOT/version nameCommons DBCP/name inceptionYear2001/inceptionYear @@ -243,5 +243,79 @@ /plugin /plugins /build - +reporting + plugins +plugin + groupIdorg.codehaus.mojo/groupId + artifactIdfindbugs-maven-plugin/artifactId + version1.0.0/version + configuration +thresholdNormal/threshold +effortDefault/effort + /configuration +/plugin +plugin + groupIdorg.codehaus.mojo/groupId + artifactIdcobertura-maven-plugin/artifactId + version2.1/version +/plugin +plugin + groupIdorg.apache.maven.plugins/groupId + artifactIdmaven-javadoc-plugin/artifactId + version2.2/version + configuration +links + linkhttp://java.sun.com/j2se/1.5.0/docs/api/link + linkhttp://jakarta.apache.org/commons/pool/api-1.3/link + linkhttp://java.sun.com/j2ee/sdk_1.3/techdocs/api/link +/links + /configuration +/plugin +plugin + groupIdorg.apache.maven.plugins/groupId + artifactIdmaven-changes-plugin/artifactId + version2.0-beta-2/version + configuration +xmlPath${basedir}/xdocs/changes.xml/xmlPath +issueLinkTemplate%URL%/%ISSUE%/issueLinkTemplate + /configuration + reportSets +reportSet + reports +reportchanges-report/report + /reports +/reportSet + /reportSets +/plugin +plugin + groupIdorg.apache.maven.plugins/groupId + artifactIdmaven-checkstyle-plugin/artifactId + version2.1/version + configuration +configLocationcheckstyle.xml/configLocation +enableRulesSummaryfalse/enableRulesSummary + /configuration +/plugin +plugin + groupIdorg.apache.maven.plugins/groupId + artifactIdmaven-surefire-report-plugin/artifactId + version2.3/version +/plugin +plugin + groupIdorg.apache.maven.plugins/groupId + artifactIdmaven-jxr-plugin/artifactId + version2.1/version +/plugin +plugin + groupIdorg.apache.maven.plugins/groupId + artifactIdmaven-pmd-plugin/artifactId + version2.2/version + configuration +rulesets + rulesetcheckstyle.xml/ruleset +/rulesets + /configuration +/plugin + /plugins +/reporting /project Added: jakarta/commons/proper/dbcp/trunk/src/site/site.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/site/site.xml?view=autorev=553747 == --- jakarta/commons/proper/dbcp/trunk/src/site/site.xml (added) +++ jakarta/commons/proper/dbcp/trunk/src/site/site.xml Thu Jul 5 23:04:45 2007 @@ -0,0 +1,51 @@ +?xml version=1.0 encoding=ISO-8859-1? + !-- + 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
svn commit: r553875 - in /jakarta/commons/proper/dbcp/trunk: ./ src/site/resources/ src/site/resources/images/ src/site/resources/images/uml/
Author: psteitz Date: Fri Jul 6 06:32:14 2007 New Revision: 553875 URL: http://svn.apache.org/viewvc?view=revrev=553875 Log: Added image resources, fixed parent POM version. Added: jakarta/commons/proper/dbcp/trunk/src/site/resources/ jakarta/commons/proper/dbcp/trunk/src/site/resources/images/ jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/ jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/AbandonedObjectPool.gif (with props) jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/BasicDataSource.gif (with props) jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/ConnectionFactory.gif (with props) jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/Delegating.gif (with props) jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/PoolingConnection.gif (with props) jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/PoolingDataSource.gif (with props) jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/createDataSource.gif (with props) jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/getConnection.gif (with props) jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/prepareStatement.gif (with props) Modified: jakarta/commons/proper/dbcp/trunk/pom.xml Modified: jakarta/commons/proper/dbcp/trunk/pom.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/pom.xml?view=diffrev=553875r1=553874r2=553875 == --- jakarta/commons/proper/dbcp/trunk/pom.xml (original) +++ jakarta/commons/proper/dbcp/trunk/pom.xml Fri Jul 6 06:32:14 2007 @@ -22,7 +22,7 @@ parent groupIdorg.apache.commons/groupId artifactIdcommons-parent/artifactId -version2/version +version3/version /parent modelVersion4.0.0/modelVersion groupIdcommons-dbcp/groupId Added: jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/AbandonedObjectPool.gif URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/AbandonedObjectPool.gif?view=autorev=553875 == Binary file - no diff available. Propchange: jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/AbandonedObjectPool.gif -- svn:mime-type = application/octet-stream Added: jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/BasicDataSource.gif URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/BasicDataSource.gif?view=autorev=553875 == Binary file - no diff available. Propchange: jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/BasicDataSource.gif -- svn:mime-type = application/octet-stream Added: jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/ConnectionFactory.gif URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/ConnectionFactory.gif?view=autorev=553875 == Binary file - no diff available. Propchange: jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/ConnectionFactory.gif -- svn:mime-type = application/octet-stream Added: jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/Delegating.gif URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/Delegating.gif?view=autorev=553875 == Binary file - no diff available. Propchange: jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/Delegating.gif -- svn:mime-type = application/octet-stream Added: jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/PoolingConnection.gif URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/PoolingConnection.gif?view=autorev=553875 == Binary file - no diff available. Propchange: jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/PoolingConnection.gif -- svn:mime-type = application/octet-stream Added: jakarta/commons/proper/dbcp/trunk/src/site/resources/images/uml/PoolingDataSource.gif URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/site
svn commit: r553511 [2/2] - in /jakarta/commons/proper/dbcp/trunk: ./ src/java/org/apache/commons/dbcp/managed/ src/test/org/apache/commons/dbcp/ src/test/org/apache/commons/dbcp/managed/ xdocs/
{ +Connection connection = newConnection(); + +// conection should be open +assertFalse(Connection should be open, connection.isClosed()); + +// attempt commit directly +try { +connection.commit(); +fail(commit method should be disabled while enlisted in a transaction); +} catch (SQLException e) { +// expected +} + +// make sure it is still open +assertFalse(Connection should be open, connection.isClosed()); + +// close connection +connection.close(); +} + +public void testReadOnly() throws Exception { +Connection connection = newConnection(); + +// NOTE: This test class uses connections that are read-only by default + +// conection should be read only +assertTrue(Connection be read-only, connection.isReadOnly()); + +// attempt to setReadOnly +try { +connection.setReadOnly(true); +fail(setReadOnly method should be disabled while enlisted in a transaction); +} catch (SQLException e) { +// expected +} + +// make sure it is still read-only +assertTrue(Connection be read-only, connection.isReadOnly()); + +// attempt to setReadonly +try { +connection.setReadOnly(false); +fail(setReadOnly method should be disabled while enlisted in a transaction); +} catch (SQLException e) { +// expected +} + +// make sure it is still read-only +assertTrue(Connection be read-only, connection.isReadOnly()); + +// close connection +connection.close(); +} +} Modified: jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml?view=diffrev=553511r1=553510r2=553511 == --- jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml (original) +++ jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Thu Jul 5 07:12:47 2007 @@ -51,6 +51,9 @@ the Xerces parser manually. This was to support early JDKs. The 1.3 version of DBCP requires JDK 1.4+. /action + action dev=psteitz type=add issue=DBCP-228 due-to=Dain Sundstrom +Added support for pooling managed connections. + /action /release release version=1.2.2 date=2007-04-04 description=This is a maintenance release containing bug fixes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r553296 - /jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml
Author: psteitz Date: Wed Jul 4 11:31:09 2007 New Revision: 553296 URL: http://svn.apache.org/viewvc?view=revrev=553296 Log: Updated to reflect changes since 1.2.2 release. Modified: jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml?view=diffrev=553296r1=553295r2=553296 == --- jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml (original) +++ jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Wed Jul 4 11:31:09 2007 @@ -38,6 +38,20 @@ titleCommons DBCP Release Notes/title /properties body +release version=1.3 date=TBD description=This release will include + new features as well as bug fixes and instrumentation. Some bug fixes + will change semantics (e.g. connection close will become idempotent). + The minimum JDK level will be increased to 1.4 + action dev=bayard type=fix issue=DBCP-218 +Corrected Javadoc to state that getLoginTimeout and setLoginTimeout are +NOT supported by BasicDataSource. + /action + action dev=bayard type=add issue=DBCP-211 +Added Maven 2 pom.xml. Removed a block of code from TestJOCLed that set +the Xerces parser manually. This was to support early JDKs. The 1.3 +version of DBCP requires JDK 1.4+. + /action +/release release version=1.2.2 date=2007-04-04 description=This is a maintenance release containing bug fixes and enhancements. All API changes are binary compatible with version 1.2.1. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r550285 - in /jakarta/commons/proper/math/trunk: src/java/org/apache/commons/math/stat/inference/ src/test/org/apache/commons/math/stat/inference/ xdocs/
Author: psteitz Date: Sun Jun 24 14:10:19 2007 New Revision: 550285 URL: http://svn.apache.org/viewvc?view=revrev=550285 Log: Added two-sample (binned comparison) ChiSquare test JIRA: MATH-160 Thanks to: Matthias Hummel Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/inference/ChiSquareTest.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/inference/ChiSquareTestImpl.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/inference/TestUtils.java jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/ChiSquareTestTest.java jakarta/commons/proper/math/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/inference/ChiSquareTest.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/inference/ChiSquareTest.java?view=diffrev=550285r1=550284r2=550285 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/inference/ChiSquareTest.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/inference/ChiSquareTest.java Sun Jun 24 14:10:19 2007 @@ -211,4 +211,118 @@ */ boolean chiSquareTest(long[][] counts, double alpha) throws IllegalArgumentException, MathException; + +/** + * pComputes a + * a href=http://www.itl.nist.gov/div898/software/dataplot/refman1/auxillar/chi2samp.htm; + * Chi-Square two sample test statistic/a comparing bin frequency counts + * in codeobserved1/code and codeobserved2/code. The + * sums of frequency counts in the two samples are not required to be the + * same. The formula used to compute the test statistic is/p + * code + * sum;[(K * observed1[i] - observed2[i]/K)sup2/sup / (observed1[i] + observed2[i])] + * /code where + * br/codeK = sqrt;[sum(observed2 / sum;(observed1)]/code + * /p + * pThis statistic can be used to perform a Chi-Square test evaluating the null hypothesis that + * both observed counts follow the same distribution. + * p + * strongPreconditions/strong: ul + * liObserved counts must be non-negative. + * /li + * liObserved counts for a specific bin must not both be zero. + * /li + * liObserved counts for a specific sample must not all be 0. + * /li + * liThe arrays codeobserved1/code and codeobserved2/code must have the same length and + * their common length must be at least 2. + * /li/ulp + * If any of the preconditions are not met, an + * codeIllegalArgumentException/code is thrown. + * + * @param observed1 array of observed frequency counts of the first data set + * @param observed2 array of observed frequency counts of the second data set + * @return chiSquare statistic + * @throws IllegalArgumentException if preconditions are not met + */ +double chiSquareDataSetsComparison(long[] observed1, long[] observed2) + throws IllegalArgumentException; + +/** + * pReturns the iobserved significance level/i, or a href= + * http://www.cas.lancs.ac.uk/glossary_v1.1/hyptest.html#pvalue; + * p-value/a, associated with a Chi-Square two sample test comparing + * bin frequency counts in codeobserved1/code and + * codeobserved2/code. + * /p + * pThe number returned is the smallest significance level at which one + * can reject the null hypothesis that the observed counts conform to the + * same distribution. + * /p + * pSee [EMAIL PROTECTED] #chiSquareDataSetsComparison(long[], long[]) for details + * on the formula used to compute the test statistic. The degrees of + * of freedom used to perform the test is one less than the common length + * of the input observed count arrays. + * /p + * strongPreconditions/strong: ul + * liObserved counts must be non-negative. + * /li + * liObserved counts for a specific bin must not both be zero. + * /li + * liObserved counts for a specific sample must not all be 0. + * /li + * liThe arrays codeobserved1/code and codeobserved2/code must + * have the same length and + * their common length must be at least 2. + * /li/ulp + * If any of the preconditions are not met, an + * codeIllegalArgumentException/code is thrown. + * + * @param observed1 array of observed frequency counts of the first data set + * @param observed2 array of observed frequency counts of the second data set + * @return p-value + * @throws IllegalArgumentException if preconditions are not met + * @throws MathException if an error occurs computing the p-value + */ +double chiSquareTestDataSetsComparison(long[] observed1, long[] observed2) + throws IllegalArgumentException
svn commit: r549729 - in /jakarta/commons/proper/pool/trunk: src/java/org/apache/commons/pool/impl/GenericObjectPool.java xdocs/changes.xml
Author: psteitz Date: Thu Jun 21 23:12:17 2007 New Revision: 549729 URL: http://svn.apache.org/viewvc?view=revrev=549729 Log: Allowed blocked threads in GenericObjectPool borrowObject to be interrupted. JIRA: POOL-102 Reported and patched: John Sumsion Modified: jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java jakarta/commons/proper/pool/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java?view=diffrev=549729r1=549728r2=549729 == --- jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java (original) +++ jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java Thu Jun 21 23:12:17 2007 @@ -851,7 +851,8 @@ } } } catch(InterruptedException e) { -// ignored +Thread.currentThread().interrupt(); +throw e; } if(_maxWait 0 ((System.currentTimeMillis() - starttime) = _maxWait)) { throw new NoSuchElementException(Timeout waiting for idle object); Modified: jakarta/commons/proper/pool/trunk/xdocs/changes.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/pool/trunk/xdocs/changes.xml?view=diffrev=549729r1=549728r2=549729 == --- jakarta/commons/proper/pool/trunk/xdocs/changes.xml (original) +++ jakarta/commons/proper/pool/trunk/xdocs/changes.xml Thu Jun 21 23:12:17 2007 @@ -30,7 +30,7 @@ Edited all KeyedObjectPool related JavaDocs to have meaningful and correct content. /action action dev=sandymac type=fix -Implemented until tests to verify KeyedObjectPool implementations conformed to Pool 2 contracts. +Implemented unit tests to verify KeyedObjectPool implementations conformed to Pool 2 contracts. Updated GenericKeyedObjectPool and StackKeyedObjectPool to conformant behavior. /action action dev=sandymac type=fix @@ -65,6 +65,9 @@ fixes issue=38669/ fixes issue=38746/ dueto name=Sandy McArthur/ + /action + action dev=psteitz type=fix issue=POOL-102 due-to=John Sumsion +Allowed blocked threads in GenericObjectPool borrowObject to be interrupted. /action /release - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r549278 - in /jakarta/commons/proper/math/trunk: src/java/org/apache/commons/math/special/ src/test/org/apache/commons/math/special/ xdocs/
Author: psteitz Date: Wed Jun 20 15:24:04 2007 New Revision: 549278 URL: http://svn.apache.org/viewvc?view=revrev=549278 Log: Increased default epsilon for Gamma, Beta function evaluation. JIRA: MATH-166 Reported and patched by Lukas Theussl Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/special/Beta.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/special/BetaTest.java jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/special/GammaTest.java jakarta/commons/proper/math/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/special/Beta.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/special/Beta.java?view=diffrev=549278r1=549277r2=549278 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/special/Beta.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/special/Beta.java Wed Jun 20 15:24:04 2007 @@ -33,7 +33,7 @@ private static final long serialVersionUID = -3833485397404128220L; /** Maximum allowed numerical error. */ -private static final double DEFAULT_EPSILON = 10e-9; +private static final double DEFAULT_EPSILON = 10e-15; /** * Default constructor. Prohibit instantiation. Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java?view=diffrev=549278r1=549277r2=549278 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java Wed Jun 20 15:24:04 2007 @@ -34,7 +34,7 @@ private static final long serialVersionUID = -6587513359895466954L; /** Maximum allowed numerical error. */ -private static final double DEFAULT_EPSILON = 10e-9; +private static final double DEFAULT_EPSILON = 10e-15; /** Lanczos coefficients */ private static double[] lanczos = Modified: jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/special/BetaTest.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/special/BetaTest.java?view=diffrev=549278r1=549277r2=549278 == --- jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/special/BetaTest.java (original) +++ jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/special/BetaTest.java Wed Jun 20 15:24:04 2007 @@ -38,7 +38,7 @@ { try { double actual = Beta.regularizedBeta(x, a, b); -TestUtils.assertEquals(expected, actual, 10e-5); +TestUtils.assertEquals(expected, actual, 10e-15); } catch(MathException ex){ fail(ex.getMessage()); } @@ -46,7 +46,7 @@ private void testLogBeta(double expected, double a, double b) { double actual = Beta.logBeta(a, b); -TestUtils.assertEquals(expected, actual, 10e-5); +TestUtils.assertEquals(expected, actual, 10e-15); } public void testRegularizedBetaNanPositivePositive() { @@ -114,6 +114,6 @@ } public void testLogBetaPositivePositive() { -testLogBeta(-0.693147, 1.0, 2.0); +testLogBeta(-0.693147180559945, 1.0, 2.0); } } Modified: jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/special/GammaTest.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/special/GammaTest.java?view=diffrev=549278r1=549277r2=549278 == --- jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/special/GammaTest.java (original) +++ jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/special/GammaTest.java Wed Jun 20 15:24:04 2007 @@ -37,8 +37,8 @@ try { double actualP = Gamma.regularizedGammaP(a, x); double actualQ = Gamma.regularizedGammaQ(a, x); -TestUtils.assertEquals(expected, actualP, 10e-5); -TestUtils.assertEquals(actualP, 1.0 - actualQ, 10e-5); +TestUtils.assertEquals(expected, actualP, 10e-15); +TestUtils.assertEquals(actualP, 1.0 - actualQ, 10e-15); } catch(MathException ex){ fail(ex.getMessage()); } @@ -46,7 +46,7 @@ private void testLogGamma(double expected, double x) { double actual
svn commit: r549299 - in /jakarta/commons/proper/math/trunk: src/java/org/apache/commons/math/util/MathUtils.java src/test/org/apache/commons/math/util/MathUtilsTest.java xdocs/changes.xml
Author: psteitz Date: Wed Jun 20 16:39:50 2007 New Revision: 549299 URL: http://svn.apache.org/viewvc?view=revrev=549299 Log: Added log function. JIRA: MATH-158 Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/util/MathUtilsTest.java jakarta/commons/proper/math/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java?view=diffrev=549299r1=549298r2=549299 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java Wed Jun 20 16:39:50 2007 @@ -117,7 +117,26 @@ } return result; } - + +/** + * pReturns the + * a href=http://mathworld.wolfram.com/Logarithm.html;logarithm/a + * for base codeb/code of codex/code. + * /p + * pReturns codeNaNcode if either argument is negative. If + * codebase/code is 0 and codex/code is positive, 0 is returned. + * If codebase/code is positive and codex/code is 0, + * codeDouble.NEGATIVE_INFINITY/code is returned. If both arguments + * are 0, the result is codeNaN/code./p + * + * @param base the base of the logarithm, must be greater than 0 + * @param x argument, must be greater than 0 + * @return the value of the logarithm - the number y such that base^y = x. + */ +public static double log(double base, double x) { + return Math.log(x)/Math.log(base); +} + /** * Returns a codedouble/code representation of the a * href=http://mathworld.wolfram.com/BinomialCoefficient.html; Binomial Modified: jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/util/MathUtilsTest.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/util/MathUtilsTest.java?view=diffrev=549299r1=549298r2=549299 == --- jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/util/MathUtilsTest.java (original) +++ jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/util/MathUtilsTest.java Wed Jun 20 16:39:50 2007 @@ -444,6 +444,16 @@ } } +public void testLog() { + assertEquals(2.0, MathUtils.log(2,4), 0); + assertEquals(3.0, MathUtils.log(2,8), 0); +assertTrue(Double.isNaN(MathUtils.log(-1, 1))); +assertTrue(Double.isNaN(MathUtils.log(1, -1))); +assertTrue(Double.isNaN(MathUtils.log(0, 0))); +assertEquals(0, MathUtils.log(0, 10), 0); +assertEquals(Double.NEGATIVE_INFINITY, MathUtils.log(10, 0), 0); +} + public void testGcd() { int a = 30; int b = 50; Modified: jakarta/commons/proper/math/trunk/xdocs/changes.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/xdocs/changes.xml?view=diffrev=549299r1=549298r2=549299 == --- jakarta/commons/proper/math/trunk/xdocs/changes.xml (original) +++ jakarta/commons/proper/math/trunk/xdocs/changes.xml Wed Jun 20 16:39:50 2007 @@ -81,6 +81,9 @@ action dev=psteitz type=fix issue=MATH-166 due-to=Lukas Theussl Increased default precision of Gamma and Beta functions. /action + action dev=psteitz type=update issue=MATH-158 due-to Hasan Diwan +Added log function to MathUtils. + /action /release release version=1.1 date=2005-12-17 description=This is a maintenance release containing bug fixes and enhancements. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r546859 - /jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh
Author: psteitz Date: Wed Jun 13 06:10:47 2007 New Revision: 546859 URL: http://svn.apache.org/viewvc?view=revrev=546859 Log: Lets try this again. Fixing m2 failing test. Modified: jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh Modified: jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh URL: http://svn.apache.org/viewvc/jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh?view=diffrev=546859r1=546858r2=546859 == --- jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh (original) +++ jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh Wed Jun 13 06:10:47 2007 @@ -277,7 +277,7 @@ fi # Deploy dated jar to maven 2 snapshot repo (configured in apache pom) -if [ `ls -1 commons-$component*.jar | wc -l` -gt 0 ] # build succeeded +if [ `ls -1 target/commons-$component*.jar | wc -l` -gt 0 ] # build succeeded then if [ $MAVEN_DEPLOY ] then - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r546740 - /jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh
Author: psteitz Date: Tue Jun 12 22:06:55 2007 New Revision: 546740 URL: http://svn.apache.org/viewvc?view=revrev=546740 Log: Fixed m2 build failure test to work when multiple jars are produced. Modified: jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh Modified: jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh URL: http://svn.apache.org/viewvc/jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh?view=diffrev=546740r1=546739r2=546740 == --- jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh (original) +++ jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh Tue Jun 12 22:06:55 2007 @@ -277,7 +277,7 @@ fi # Deploy dated jar to maven 2 snapshot repo (configured in apache pom) -if [ `ls target/commons-$component*.jar` ] # build succeeded +if [ `ls -1 commons-$component*.jar | wc -l` -gt 0 ] # build succeeded then if [ $MAVEN_DEPLOY ] then - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r546001 - in /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive: AbstractStorelessUnivariateStatistic.java moment/Variance.java
Author: psteitz Date: Sun Jun 10 21:42:56 2007 New Revision: 546001 URL: http://svn.apache.org/viewvc?view=revrev=546001 Log: Javadoc only. Made it clear that increment-getResult uses a different, less accurate, computing formula than evaluate for Variance. JIRA: MATH-163 Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/AbstractStorelessUnivariateStatistic.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/AbstractStorelessUnivariateStatistic.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/AbstractStorelessUnivariateStatistic.java?view=diffrev=546001r1=546000r2=546001 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/AbstractStorelessUnivariateStatistic.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/AbstractStorelessUnivariateStatistic.java Sun Jun 10 21:42:56 2007 @@ -46,8 +46,9 @@ * statistic. Its side effects are the same as invoking [EMAIL PROTECTED] #clear} and * then [EMAIL PROTECTED] #incrementAll(double[])}. * p - * Implementations may override this method with a more efficient - * implementation that works directly with the input array. + * Implementations may override this method with a more efficient and + * possibly more accurate implementation that works directly with the + * input array. * p * If the array is null, an IllegalArgumentException is thrown. * @@ -69,8 +70,9 @@ * statistic. Its side effects are the same as invoking [EMAIL PROTECTED] #clear} and * then [EMAIL PROTECTED] #incrementAll(double[], int, int)}. * p - * Implementations may override this method with a more efficient - * implementation that works directly with the input array. + * Implementations may override this method with a more efficient and + * possibly more accurate implementation that works directly with the + * input array. * p * If the array is null or the index parameters are not valid, an * IllegalArgumentException is thrown. Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java?view=diffrev=546001r1=546000r2=546001 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java Sun Jun 10 21:42:56 2007 @@ -21,7 +21,7 @@ import org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic; /** - * Computes the variance of the available values. By default, the unbiased + * Computes the variance of the available values. By default, the unbiased * sample variance definitional formula is used: * p * variance = sum((x_i - mean)^2) / (n - 1) @@ -30,21 +30,34 @@ * of sample observations. * p * The definitional formula does not have good numerical properties, so - * this implementation uses updating formulas based on West's algorithm - * as described in a href=http://doi.acm.org/10.1145/359146.359152; - * Chan, T. F. and J. G. Lewis 1979, iCommunications of the ACM/i, - * vol. 22 no. 9, pp. 526-531./a. + * this implementation does not compute the statistic using the definitional + * formula. ul + * li The codegetResult/code method computes the variance using + * updating formulas based on West's algorithm, as described in + * a href=http://doi.acm.org/10.1145/359146.359152; Chan, T. F. and + * J. G. Lewis 1979, iCommunications of the ACM/i, + * vol. 22 no. 9, pp. 526-531./a/li + * li The codeevaluate/code methods leverage the fact that they have the + * full array of values in memory to execute a two-pass algorithm. + * Specifically, these methods use the corrected two-pass algorithm from + * Chan, Golub, Levesque, iAlgorithms for Computing the Sample Variance/i, + * American Statistician, August 1983./li/ul + * Note that adding values using codeincrement/code or + * codeincrementAll/code and then executing codegetResult/code will + * sometimes give a different, less accurate, result than executing + * codeevaluate/code with the full array of values. The former approach + * should only be used when the full array of values is not available. * p * The population variance ( sum((x_i - mean)^2) / n ) can also * be computed using this statistic
svn commit: r545791 - /jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml
Author: psteitz Date: Sat Jun 9 13:12:05 2007 New Revision: 545791 URL: http://svn.apache.org/viewvc?view=revrev=545791 Log: Corrected 1.2.2 release date. Modified: jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml?view=diffrev=545791r1=545790r2=545791 == --- jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml (original) +++ jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Sat Jun 9 13:12:05 2007 @@ -38,7 +38,7 @@ titleCommons DBCP Release Notes/title /properties body -release version=1.2.2 date=2007-03-31 +release version=1.2.2 date=2007-04-04 description=This is a maintenance release containing bug fixes and enhancements. All API changes are binary compatible with version 1.2.1. action dev=dirkv type=add - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r545796 - /jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh
Author: psteitz Date: Sat Jun 9 14:38:46 2007 New Revision: 545796 URL: http://svn.apache.org/viewvc?view=revrev=545796 Log: Fixed svn up path to reflect move to commons-nightly. Modified: jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh Modified: jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh URL: http://svn.apache.org/viewvc/jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh?view=diffrev=545796r1=545795r2=545796 == --- jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh (original) +++ jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh Sat Jun 9 14:38:46 2007 @@ -356,8 +356,8 @@ #== echo Commons nightly build starting: `date` -# Update commons-build -cd $proper_root/commons-build +# Update commons-nightly +cd $proper_root/commons-nightly svn up # Update and install commons m2 poms - drop this when they are released - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r543695 - /jakarta/commons/proper/math/trunk/pom.xml
Author: psteitz Date: Fri Jun 1 18:59:34 2007 New Revision: 543695 URL: http://svn.apache.org/viewvc?view=revrev=543695 Log: Added clirr check and report. Modified: jakarta/commons/proper/math/trunk/pom.xml Modified: jakarta/commons/proper/math/trunk/pom.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/pom.xml?view=diffrev=543695r1=543694r2=543695 == --- jakarta/commons/proper/math/trunk/pom.xml (original) +++ jakarta/commons/proper/math/trunk/pom.xml Fri Jun 1 18:59:34 2007 @@ -231,8 +231,20 @@ /execution /executions /plugin +plugin + groupIdorg.codehaus.mojo/groupId + artifactIdclirr-maven-plugin/artifactId + version2.0/version + executions +execution + goals +goalcheck/goal + /goals +/execution + /executions +/plugin /plugins -/build + /build reporting plugins plugin @@ -298,6 +310,14 @@ rulesetcheckstyle.xml/ruleset /rulesets /configuration + /plugin + plugin +groupIdorg.codehaus.mojo/groupId +artifactIdclirr-maven-plugin/artifactId +version2.0/version +configuration + minSeverityinfo/minSeverity + /configuration /plugin /plugins /reporting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r543067 - /jakarta/commons/proper/math/trunk/pom.xml
Author: psteitz Date: Wed May 30 23:34:41 2007 New Revision: 543067 URL: http://svn.apache.org/viewvc?view=revrev=543067 Log: Added site deployment config. Modified: jakarta/commons/proper/math/trunk/pom.xml Modified: jakarta/commons/proper/math/trunk/pom.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/pom.xml?view=diffrev=543067r1=543066r2=543067 == --- jakarta/commons/proper/math/trunk/pom.xml (original) +++ jakarta/commons/proper/math/trunk/pom.xml Wed May 30 23:34:41 2007 @@ -45,6 +45,14 @@ developerConnectionscm:svn:https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk/developerConnection urlhttp://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/url /scm + + distributionManagement +site + idpeople.apache.org/id + nameCommons Math/name + urlscp://people.apache.org/www/jakarta.apache.org/commons/math/url +/site + /distributionManagement developers developer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r543073 - in /jakarta/commons/proper/math/trunk/src: experimental/org/apache/commons/math/analysis/FunctionOperator.java test/org/apache/commons/math/estimation/MinpackTest.java test/org/a
Author: psteitz Date: Thu May 31 00:37:24 2007 New Revision: 543073 URL: http://svn.apache.org/viewvc?view=revrev=543073 Log: Added missing license headers. Modified: jakarta/commons/proper/math/trunk/src/experimental/org/apache/commons/math/analysis/FunctionOperator.java jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/estimation/MinpackTest.java jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/ode/StepProblem.java Modified: jakarta/commons/proper/math/trunk/src/experimental/org/apache/commons/math/analysis/FunctionOperator.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/experimental/org/apache/commons/math/analysis/FunctionOperator.java?view=diffrev=543073r1=543072r2=543073 == --- jakarta/commons/proper/math/trunk/src/experimental/org/apache/commons/math/analysis/FunctionOperator.java (original) +++ jakarta/commons/proper/math/trunk/src/experimental/org/apache/commons/math/analysis/FunctionOperator.java Thu May 31 00:37:24 2007 @@ -1,8 +1,18 @@ /* - * Created on Nov 19, 2003 + * 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 * - * To change the template for this generated file go to - * WindowPreferencesJavaCode GenerationCode and Comments + * 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. */ package org.apache.commons.math.analysis; Modified: jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/estimation/MinpackTest.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/estimation/MinpackTest.java?view=diffrev=543073r1=543072r2=543073 == --- jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/estimation/MinpackTest.java (original) +++ jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/estimation/MinpackTest.java Thu May 31 00:37:24 2007 @@ -1,3 +1,20 @@ +/* + * 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. + */ + package org.apache.commons.math.estimation; import java.util.Arrays; Modified: jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/ode/StepProblem.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/ode/StepProblem.java?view=diffrev=543073r1=543072r2=543073 == --- jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/ode/StepProblem.java (original) +++ jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/ode/StepProblem.java Thu May 31 00:37:24 2007 @@ -1,3 +1,20 @@ +/* + * 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
svn commit: r543079 - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/ValueServer.java
Author: psteitz Date: Thu May 31 00:58:32 2007 New Revision: 543079 URL: http://svn.apache.org/viewvc?view=revrev=543079 Log: Javadoc; changed string double generator to use valueOf. Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/ValueServer.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/ValueServer.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/ValueServer.java?view=diffrev=543079r1=543078r2=543079 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/ValueServer.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/ValueServer.java Thu May 31 00:58:32 2007 @@ -302,16 +302,18 @@ /** * Gets next sequential value from the codevaluesFileURL/code. * p - * Throws an IOException if the read fails. + * Throws an IOException if the read fails./p * p * This method will open the codevaluesFileURL/code if there is no - * replay file open. + * replay file open./p * p * The codevaluesFileURL/code will be closed and reopened to wrap around - * from EOF to BOF if EOF is encountered. + * from EOF to BOF if EOF is encountered./p * * @return next value from the replay file * @throws IOException if there is a problem reading from the file + * @throws NumberFormatException if an invalid numeric string is + * encountered in the file */ private double getNextReplay() throws IOException { String str = null; @@ -323,7 +325,7 @@ resetReplayFile(); str = filePointer.readLine(); } -return new Double(str).doubleValue(); +return Double.valueOf(str).doubleValue(); } /** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r543054 - in /jakarta/commons/proper/math/trunk/src/site: ./ resources/ resources/images/ resources/images/math.gif
Author: psteitz Date: Wed May 30 21:53:37 2007 New Revision: 543054 URL: http://svn.apache.org/viewvc?view=revrev=543054 Log: Added resources for m2 site. Added: jakarta/commons/proper/math/trunk/src/site/ jakarta/commons/proper/math/trunk/src/site/resources/ jakarta/commons/proper/math/trunk/src/site/resources/images/ jakarta/commons/proper/math/trunk/src/site/resources/images/math.gif - copied unchanged from r542976, jakarta/commons/proper/math/trunk/xdocs/images/math.gif - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r543056 - /jakarta/commons/proper/math/trunk/pom.xml
Author: psteitz Date: Wed May 30 21:57:45 2007 New Revision: 543056 URL: http://svn.apache.org/viewvc?view=revrev=543056 Log: Configured reports. Modified: jakarta/commons/proper/math/trunk/pom.xml Modified: jakarta/commons/proper/math/trunk/pom.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/pom.xml?view=diffrev=543056r1=543055r2=543056 == --- jakarta/commons/proper/math/trunk/pom.xml (original) +++ jakarta/commons/proper/math/trunk/pom.xml Wed May 30 21:57:45 2007 @@ -211,7 +211,86 @@ /descriptors /configuration /plugin +plugin + groupIdorg.codehaus.mojo/groupId + artifactIdcobertura-maven-plugin/artifactId + executions +execution + goals +goalclean/goal +goalcheck/goal + /goals +/execution + /executions +/plugin /plugins /build - + reporting +plugins + plugin +groupIdorg.codehaus.mojo/groupId +artifactIdfindbugs-maven-plugin/artifactId +version1.0.0/version +configuration + thresholdNormal/threshold + effortDefault/effort + /configuration + /plugin + plugin +groupIdorg.codehaus.mojo/groupId +artifactIdcobertura-maven-plugin/artifactId +version2.1/version + /plugin + plugin +groupIdorg.apache.maven.plugins/groupId +artifactIdmaven-javadoc-plugin/artifactId +version2.2/version + /plugin + plugin +groupIdorg.apache.maven.plugins/groupId +artifactIdmaven-changes-plugin/artifactId +version2.0-beta-2/version +configuration + xmlPath${basedir}/xdocs/changes.xml/xmlPath + issueLinkTemplate%URL%/%ISSUE%/issueLinkTemplate +/configuration +reportSets + reportSet +reports + reportchanges-report/report +/reports + /reportSet +/reportSets + /plugin + plugin +groupIdorg.apache.maven.plugins/groupId +artifactIdmaven-checkstyle-plugin/artifactId +version2.1/version +configuration + configLocationcheckstyle.xml/configLocation + enableRulesSummaryfalse/enableRulesSummary +/configuration + /plugin + plugin +groupIdorg.apache.maven.plugins/groupId +artifactIdmaven-surefire-report-plugin/artifactId +version2.3/version + /plugin + plugin +groupIdorg.apache.maven.plugins/groupId +artifactIdmaven-jxr-plugin/artifactId +version2.1/version + /plugin + plugin +groupIdorg.apache.maven.plugins/groupId +artifactIdmaven-pmd-plugin/artifactId +version2.2/version +configuration + rulesets +rulesetcheckstyle.xml/ruleset + /rulesets +/configuration + /plugin +/plugins + /reporting /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r543062 - /jakarta/commons/proper/math/trunk/pom.xml
Author: psteitz Date: Wed May 30 22:17:43 2007 New Revision: 543062 URL: http://svn.apache.org/viewvc?view=revrev=543062 Log: Fixed name. Modified: jakarta/commons/proper/math/trunk/pom.xml Modified: jakarta/commons/proper/math/trunk/pom.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/pom.xml?view=diffrev=543062r1=543061r2=543062 == --- jakarta/commons/proper/math/trunk/pom.xml (original) +++ jakarta/commons/proper/math/trunk/pom.xml Wed May 30 22:17:43 2007 @@ -28,7 +28,7 @@ groupIdcommons-math/groupId artifactIdcommons-math/artifactId version1.2-SNAPSHOT/version - nameLang/name + nameMath/name inceptionYear2003/inceptionYear descriptionThe Math project is a library of lightweight, self-contained mathematics and statistics components addressing the most common practical problems not immediately available in the Java programming language or commons-lang./description - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r543065 - /jakarta/commons/proper/math/trunk/src/site/site.xml
Author: psteitz Date: Wed May 30 22:45:11 2007 New Revision: 543065 URL: http://svn.apache.org/viewvc?view=revrev=543065 Log: Initial commit. Added: jakarta/commons/proper/math/trunk/src/site/site.xml (with props) Added: jakarta/commons/proper/math/trunk/src/site/site.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/site/site.xml?view=autorev=543065 == --- jakarta/commons/proper/math/trunk/src/site/site.xml (added) +++ jakarta/commons/proper/math/trunk/src/site/site.xml Wed May 30 22:45:11 2007 @@ -0,0 +1,62 @@ +?xml version=1.0 encoding=ISO-8859-1? +!-- + 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. +-- +project name=Math + bannerRight +nameCommons Math/name +src/images/math.gif/src +href/index.html/href + /bannerRight + + body +menu name=Math + item name=Overview href=/index.html/ + item name=Proposal href=/proposal.html/ + item name=Developers Guide href=/developers.html/ + item name=Javadoc (1.0 release) + href=http://jakarta.apache.org/commons/math/api-1.0/index.html/ + item name=Javadoc (1.1 release) + href=http://jakarta.apache.org/commons/math/api-1.1/index.html/ + item name=Javadoc (1.2-SNAPSHOT) href=apidocs/index.html/ + item name=Source Repository (current) + href=http://svn.apache.org/viewcvs.cgi/jakarta/commons/proper/math/trunk/ + item name=Issue Tracking href=/issue-tracking.html/ + item name=Wiki +href=http://wiki.apache.org/jakarta-commons/Math/ +/menu + +menu name=User Guide + item name=Contentshref=/userguide/index.html/ + item name=Overviewhref=/userguide/overview.html/ + item name=Statistics href=/userguide/stat.html/ + item name=Data Generation href=/userguide/random.html/ + item name=Linear Algebra href=/userguide/linear.html/ + item name=Numerical Analysis href=/userguide/analysis.html/ + item name=Special Functions href=/userguide/special.html/ + item name=Utilities href=/userguide/utilities.html/ + item name=Complex Numbers href=/userguide/complex.html/ + item name=Distributions href=/userguide/distribution.html/ + item name=Fractions href=/userguide/fraction.html/ + item name=Transform Methods href=/userguide/transform.html/ + item name=3D Geometry href=/userguide/geometry.html/ + item name=Parametric Estimation href=/userguide/estimation.html/ + item name=Optimization href=/userguide/optimization.html/ + item name=Ordinary Differential Equations href=/userguide/ode.html/ +/menu + + /body +/project Propchange: jakarta/commons/proper/math/trunk/src/site/site.xml -- svn:eol-style = native - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r541998 - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/
Author: psteitz Date: Sun May 27 09:16:29 2007 New Revision: 541998 URL: http://svn.apache.org/viewvc?view=revrev=541998 Log: Made license headers conistent, removed author tags (with permission) Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimatedParameter.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimationException.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimationProblem.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/Estimator.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/GaussNewtonEstimator.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/LevenbergMarquardtEstimator.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/WeightedMeasurement.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimatedParameter.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimatedParameter.java?view=diffrev=541998r1=541997r2=541998 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimatedParameter.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimatedParameter.java Sun May 27 09:16:29 2007 @@ -1,19 +1,19 @@ -// 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. +/* + * 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. + */ package org.apache.commons.math.estimation; @@ -28,7 +28,6 @@ * satisfy convergence criterions specific to each solver./p * @version $Id: EstimatedParameter.java 1705 2006-09-17 19:57:39Z luc $ - * @author L. Maisonobe */ Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimationException.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimationException.java?view=diffrev=541998r1=541997r2=541998 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimationException.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimationException.java Sun May 27 09:16:29 2007 @@ -1,19 +1,19 @@ -// 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. +/* + * Licensed to the Apache Software Foundation (ASF) under one or more
svn commit: r542017 - in /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry: CardanEulerSingularityException.java NotARotationMatrixException.java Rotation.java RotationOrder
Author: psteitz Date: Sun May 27 11:35:14 2007 New Revision: 542017 URL: http://svn.apache.org/viewvc?view=revrev=542017 Log: Made license headers conistent, removed author tags (with permission) Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/CardanEulerSingularityException.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/NotARotationMatrixException.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Rotation.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/RotationOrder.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/CardanEulerSingularityException.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/CardanEulerSingularityException.java?view=diffrev=542017r1=542016r2=542017 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/CardanEulerSingularityException.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/CardanEulerSingularityException.java Sun May 27 11:35:14 2007 @@ -1,19 +1,19 @@ -// 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. +/* + * 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. + */ package org.apache.commons.math.geometry; @@ -23,7 +23,6 @@ * or Euler angles from a rotation. * @version $Id: CardanEulerSingularityException.java 1705 2006-09-17 19:57:39Z luc $ - * @author L. Maisonobe */ Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/NotARotationMatrixException.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/NotARotationMatrixException.java?view=diffrev=542017r1=542016r2=542017 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/NotARotationMatrixException.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/NotARotationMatrixException.java Sun May 27 11:35:14 2007 @@ -1,19 +1,19 @@ -// 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. +/* + * 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
svn commit: r542018 [2/2] - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ode/
Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ode/SwitchState.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ode/SwitchState.java?view=diffrev=542018r1=542017r2=542018 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ode/SwitchState.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ode/SwitchState.java Sun May 27 11:40:52 2007 @@ -1,19 +1,19 @@ -// 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. +/* + * 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. + */ package org.apache.commons.math.ode; @@ -37,7 +37,6 @@ * occurs at a bound rather than inside the step)./p * * @version $Id: SwitchState.java 1705 2006-09-17 19:57:39Z luc $ - * @author L. Maisonobe * */ class SwitchState implements Serializable { Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ode/SwitchingFunction.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ode/SwitchingFunction.java?view=diffrev=542018r1=542017r2=542018 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ode/SwitchingFunction.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ode/SwitchingFunction.java Sun May 27 11:40:52 2007 @@ -1,19 +1,19 @@ -// 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. +/* + * 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. + */ package org.apache.commons.math.ode; @@ -43,7 +43,6 @@ * fixed step ones)./p * * @version $Id: SwitchingFunction.java 1705 2006-09-17 19:57:39Z luc $ - * @author L. Maisonobe * */ Modified:
svn commit: r542025 - in /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/optimization: ConvergenceChecker.java CostException.java CostFunction.java DirectSearchOptimizer.java Multi
Author: psteitz Date: Sun May 27 12:21:12 2007 New Revision: 542025 URL: http://svn.apache.org/viewvc?view=revrev=542025 Log: Made license headers conistent, removed author tags (with permission). Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/ConvergenceChecker.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/CostException.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/CostFunction.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/DirectSearchOptimizer.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/MultiDirectional.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/NelderMead.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/PointCostPair.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/ConvergenceChecker.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/ConvergenceChecker.java?view=diffrev=542025r1=542024r2=542025 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/ConvergenceChecker.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/ConvergenceChecker.java Sun May 27 12:21:12 2007 @@ -1,19 +1,19 @@ -// 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. +/* + * 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. + */ package org.apache.commons.math.optimization; @@ -26,7 +26,6 @@ * the problem at hand./p * @version $Id: ConvergenceChecker.java 1705 2006-09-17 19:57:39Z luc $ - * @author L. Maisonobe */ Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/CostException.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/CostException.java?view=diffrev=542025r1=542024r2=542025 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/CostException.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/CostException.java Sun May 27 12:21:12 2007 @@ -1,19 +1,19 @@ -// 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. +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE
svn commit: r542026 - in /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math: ArgumentOutsideDomainException.java MaxIterationsExceededException.java MessagesResources_fr.java fraction
Author: psteitz Date: Sun May 27 12:27:10 2007 New Revision: 542026 URL: http://svn.apache.org/viewvc?view=revrev=542026 Log: Made license headers conistent. Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ArgumentOutsideDomainException.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MaxIterationsExceededException.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MessagesResources_fr.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionConversionException.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ArgumentOutsideDomainException.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ArgumentOutsideDomainException.java?view=diffrev=542026r1=542025r2=542026 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ArgumentOutsideDomainException.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ArgumentOutsideDomainException.java Sun May 27 12:27:10 2007 @@ -1,19 +1,19 @@ -// 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. +/* + * 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. + */ package org.apache.commons.math; Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MaxIterationsExceededException.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MaxIterationsExceededException.java?view=diffrev=542026r1=542025r2=542026 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MaxIterationsExceededException.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MaxIterationsExceededException.java Sun May 27 12:27:10 2007 @@ -1,19 +1,19 @@ -// 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. +/* + * 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
svn commit: r542048 - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/
Author: psteitz Date: Sun May 27 16:02:13 2007 New Revision: 542048 URL: http://svn.apache.org/viewvc?view=revrev=542048 Log: Javadoc formatting and minor edits. Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimatedParameter.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimationException.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimationProblem.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/Estimator.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/GaussNewtonEstimator.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/LevenbergMarquardtEstimator.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/WeightedMeasurement.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimatedParameter.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimatedParameter.java?view=diffrev=542048r1=542047r2=542048 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimatedParameter.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimatedParameter.java Sun May 27 16:02:13 2007 @@ -19,16 +19,16 @@ import java.io.Serializable; -/** This class represent the estimated parameters of an estimation problem. - +/** This class represents the estimated parameters of an estimation problem. + * * pThe parameters of an estimation problem have a name, a value and * a bound flag. The value of bound parameters is considered trusted * and the solvers should not adjust them. On the other hand, the * solvers should adjust the value of unbounds parameters until they * satisfy convergence criterions specific to each solver./p - + * * @version $Id: EstimatedParameter.java 1705 2006-09-17 19:57:39Z luc $ - + * */ public class EstimatedParameter Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimationException.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimationException.java?view=diffrev=542048r1=542047r2=542048 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimationException.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimationException.java Sun May 27 16:02:13 2007 @@ -19,10 +19,11 @@ import org.apache.commons.math.MathException; -/** This class represents exceptions thrown by the estimation solvers. - +/** + * This class represents exceptions thrown by the estimation solvers. + * * @version $Id: EstimationException.java 1705 2006-09-17 19:57:39Z luc $ - + * */ public class EstimationException @@ -31,7 +32,8 @@ /** Serializable version identifier. */ private static final long serialVersionUID = -7414806622114810487L; -/** Simple constructor. +/** + * Simple constructor. * Build an exception by translating and formating a message * @param specifier format specifier (to be translated) * @param parts to insert in the format (no translation) @@ -40,7 +42,8 @@ super(specifier, parts); } -/** Simple constructor. +/** + * Simple constructor. * Build an exception from a cause * @param cause cause of this exception */ Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimationProblem.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimationProblem.java?view=diffrev=542048r1=542047r2=542048 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimationProblem.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/EstimationProblem.java Sun May 27 16:02:13 2007 @@ -17,12 +17,13 @@ package org.apache.commons.math.estimation; -/** This interface represents an estimation problem. - +/** + * This interface represents an estimation problem. + * * pThis interface should be implemented by all real estimation * problems before they can be handled by the estimators through the * [EMAIL PROTECTED] Estimator#estimate Estimator.estimate} method./p - + * * pAn estimation problem, as seen by a solver is a set of * parameters and a set of measurements. The parameters are adjusted * during the estimation through
svn commit: r541959 - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/
Author: psteitz Date: Sat May 26 19:11:12 2007 New Revision: 541959 URL: http://svn.apache.org/viewvc?view=revrev=541959 Log: Made license headers consistent, removed @author tag (with permission) Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/GaussianRandomGenerator.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/NormalizedRandomGenerator.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/NotPositiveDefiniteMatrixException.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/RandomVectorGenerator.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/UncorrelatedRandomVectorGenerator.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/UniformRandomGenerator.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.java?view=diffrev=541959r1=541958r2=541959 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.java Sat May 26 19:11:12 2007 @@ -1,19 +1,19 @@ -//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. +/* + * 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. + */ package org.apache.commons.math.random; Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/GaussianRandomGenerator.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/GaussianRandomGenerator.java?view=diffrev=541959r1=541958r2=541959 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/GaussianRandomGenerator.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/GaussianRandomGenerator.java Sat May 26 19:11:12 2007 @@ -1,19 +1,19 @@ -// 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. +/* + * 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
svn commit: r539909 - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/UniformRandomGenerator.java
Author: psteitz Date: Sun May 20 11:42:50 2007 New Revision: 539909 URL: http://svn.apache.org/viewvc?view=revrev=539909 Log: Javadoc. Replaced MathML entity with numeric character reference. Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/UniformRandomGenerator.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/UniformRandomGenerator.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/UniformRandomGenerator.java?view=diffrev=539909r1=539908r2=539909 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/UniformRandomGenerator.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/UniformRandomGenerator.java Sun May 20 11:42:50 2007 @@ -17,10 +17,13 @@ package org.apache.commons.math.random; -/** This class implements a normalized uniform random generator. - * pSince it is a normalized random generator, it has a null mean - * and a unit standard deviation. Being also a uniform - * generator, it produces numbers in the range [-sqrt;(3) ; +sqrt;(3)]./p +/** + * This class implements a normalized uniform random generator. + * pSince it is a normalized random generator, it generates values + * from a uniform distribution with mean equal to 0 and standard + * deviation equal to 1. Generated values fall in the range + * [-#x0221A;3, +#x0221A;3]./p + * * @version $Revision:$ $Date$ */ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r539915 - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.java
Author: psteitz Date: Sun May 20 12:30:05 2007 New Revision: 539915 URL: http://svn.apache.org/viewvc?view=revrev=539915 Log: Javadoc only. Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.java?view=diffrev=539915r1=539914r2=539915 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.java Sun May 20 12:30:05 2007 @@ -21,13 +21,13 @@ import org.apache.commons.math.linear.RealMatrix; import org.apache.commons.math.linear.RealMatrixImpl; -/** This class allows to generate random vectors with correlated components. - +/** + * A [EMAIL PROTECTED] RandomVectorGenerator} that generates vectors with with + * correlated components. * pRandom vectors with correlated components are built by combining - * the uncorrelated components of another random vector in such a way + * the uncorrelated components of another random vector in such a way that * the resulting correlations are the ones specified by a positive * definite covariance matrix./p - * pSometimes, the covariance matrix for a given simulation is not * strictly positive definite. This means that the correlations are * not all independant from each other. In this case, however, the non @@ -40,7 +40,7 @@ * more rows than columns. The number of columns of codeB/code is * the rank of the covariance matrix, and it is the dimension of the * uncorrelated random vector that is needed to compute the component - * of the correlated vector. This class does handle this situation + * of the correlated vector. This class handles this situation * automatically./p * @version $Revision:$ $Date$ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r539829 - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java
Author: psteitz Date: Sat May 19 22:45:54 2007 New Revision: 539829 URL: http://svn.apache.org/viewvc?view=revrev=539829 Log: eliminated unnecessary Double creation. Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java?view=diffrev=539829r1=539828r2=539829 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java Sat May 19 22:45:54 2007 @@ -558,7 +558,7 @@ public static double round(double x, int scale, int roundingMethod) { try { return (new BigDecimal - (new Double(x).toString()) + (Double.toString(x)) .setScale(scale, roundingMethod)) .doubleValue(); } catch (NumberFormatException ex) { - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r539830 - in /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random: RandomVectorGenerator.java UncorrelatedRandomVectorGenerator.java
Author: psteitz Date: Sat May 19 22:48:00 2007 New Revision: 539830 URL: http://svn.apache.org/viewvc?view=revrev=539830 Log: Javadoc only. Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/RandomVectorGenerator.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/UncorrelatedRandomVectorGenerator.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/RandomVectorGenerator.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/RandomVectorGenerator.java?view=diffrev=539830r1=539829r2=539830 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/RandomVectorGenerator.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/RandomVectorGenerator.java Sat May 19 22:48:00 2007 @@ -17,7 +17,7 @@ package org.apache.commons.math.random; -/** This interface represent a random generator for whole vectors. +/** This interface represents a random generator for whole vectors. * @version $Id: RandomVectorGenerator.java 1705 2006-09-17 19:57:39Z luc $ * @author L. Maisonobe Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/UncorrelatedRandomVectorGenerator.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/UncorrelatedRandomVectorGenerator.java?view=diffrev=539830r1=539829r2=539830 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/UncorrelatedRandomVectorGenerator.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/UncorrelatedRandomVectorGenerator.java Sat May 19 22:48:00 2007 @@ -19,8 +19,12 @@ import java.util.Arrays; -/** This class allows to generate random vectors with uncorrelated components. - * @version $Id:$ +/** + * A [EMAIL PROTECTED] RandomVectorGenerator} that generates vectors with uncorrelated + * components. Components of generated vectors follow (independent) Gaussian + * distributions, with parameters supplied in the constructor. + * + * @version $Revision$ */ public class UncorrelatedRandomVectorGenerator @@ -60,7 +64,7 @@ this.generator = generator; } - /** Generate a correlated random vector. + /** Generate an uncorrelated random vector. * @return a random vector as a newly built array of double */ public double[] nextVector() { - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r537718 - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ConvergenceException.java
Author: psteitz Date: Sun May 13 23:08:16 2007 New Revision: 537718 URL: http://svn.apache.org/viewvc?view=revrev=537718 Log: Added back (deprecated) legacy constructors to restore backward compatibility. Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ConvergenceException.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ConvergenceException.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ConvergenceException.java?view=diffrev=537718r1=537717r2=537718 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ConvergenceException.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ConvergenceException.java Sun May 13 23:08:16 2007 @@ -62,5 +62,31 @@ public ConvergenceException(String pattern, Object[] arguments, Throwable cause) { super(pattern, arguments, cause); } + +/** + * Constructs a new codeConvergenceException/code with specified + * detail message and nested codeThrowable/code root cause. + * + * @param msg the error message. + * @param rootCause the exception or error that caused this exception + * to be thrown. + * @deprecated as of 1.2, replaced by + * [EMAIL PROTECTED] #ConvergenceException(String, Object[], Throwable)} + */ +public ConvergenceException(String msg, Throwable rootCause) { +super(msg, rootCause); +} + +/** + * Constructs a new codeConvergenceException/code with specified + * detail message. + * + * @param msg the error message. + * @deprecated as of 1.2, replaced by + * [EMAIL PROTECTED] #ConvergenceException(String, Object[])} + */ +public ConvergenceException(String msg) { +super(msg); +} } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r537699 - /jakarta/commons/proper/pool/trunk/xdocs/downloads.xml
Author: psteitz Date: Sun May 13 20:52:12 2007 New Revision: 537699 URL: http://svn.apache.org/viewvc?view=revrev=537699 Log: Added link to 1.3 release notes. Modified: jakarta/commons/proper/pool/trunk/xdocs/downloads.xml Modified: jakarta/commons/proper/pool/trunk/xdocs/downloads.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/pool/trunk/xdocs/downloads.xml?view=diffrev=537699r1=537698r2=537699 == --- jakarta/commons/proper/pool/trunk/xdocs/downloads.xml (original) +++ jakarta/commons/proper/pool/trunk/xdocs/downloads.xml Sun May 13 20:52:12 2007 @@ -26,6 +26,7 @@ section name=Releases pThe following releases are available:/p ul + liRelease 1.3 - 3 April 2006 - a href=release-notes-1.3.html(release notes)/a/li liRelease 1.2 - 7 June 2004 - a href=release-notes-1.2.html(release notes)/a/li liRelease 1.1 - 20 October 2003 - a href=release-notes-1.1.html(release notes)/a/li liRelease 1.0.1 - 12 August 2002/li - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r537700 - /jakarta/commons/proper/math/trunk/pom.xml
Author: psteitz Date: Sun May 13 21:19:48 2007 New Revision: 537700 URL: http://svn.apache.org/viewvc?view=revrev=537700 Log: Configured assembly plugin, bumped commons parent version to 2. Modified: jakarta/commons/proper/math/trunk/pom.xml Modified: jakarta/commons/proper/math/trunk/pom.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/pom.xml?view=diffrev=537700r1=537699r2=537700 == --- jakarta/commons/proper/math/trunk/pom.xml (original) +++ jakarta/commons/proper/math/trunk/pom.xml Sun May 13 21:19:48 2007 @@ -22,7 +22,7 @@ parent groupIdorg.apache.commons/groupId artifactIdcommons-parent/artifactId -version1/version +version2/version /parent modelVersion4.0.0/modelVersion groupIdcommons-math/groupId @@ -199,6 +199,16 @@ excludes exclude**/*AbstractTest.java/exclude /excludes + /configuration +/plugin +plugin + artifactIdmaven-assembly-plugin/artifactId + version2.2-beta-1/version + configuration +descriptors + descriptorsrc/assembly/src.xml/descriptor + descriptorsrc/assembly/bin.xml/descriptor +/descriptors /configuration /plugin /plugins - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r537701 - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java
Author: psteitz Date: Sun May 13 21:22:07 2007 New Revision: 537701 URL: http://svn.apache.org/viewvc?view=revrev=537701 Log: Javadoc only. Fixed typo. Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java?view=diffrev=537701r1=537700r2=537701 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java Sun May 13 21:22:07 2007 @@ -32,7 +32,7 @@ * The definitional formula does not have good numerical properties, so * this implementation uses updating formulas based on West's algorithm * as described in a href=http://doi.acm.org/10.1145/359146.359152; - * Chan, T. F. andJ. G. Lewis 1979, iCommunications of the ACM/i, + * Chan, T. F. and J. G. Lewis 1979, iCommunications of the ACM/i, * vol. 22 no. 9, pp. 526-531./a. * p * The population variance ( sum((x_i - mean)^2) / n ) can also - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r537703 - /jakarta/commons/proper/math/trunk/xdocs/userguide/geometry.xml
Author: psteitz Date: Sun May 13 21:28:00 2007 New Revision: 537703 URL: http://svn.apache.org/viewvc?view=revrev=537703 Log: Fixed some typos, minor edits. Modified: jakarta/commons/proper/math/trunk/xdocs/userguide/geometry.xml Modified: jakarta/commons/proper/math/trunk/xdocs/userguide/geometry.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/xdocs/userguide/geometry.xml?view=diffrev=537703r1=537702r2=537703 == --- jakarta/commons/proper/math/trunk/xdocs/userguide/geometry.xml (original) +++ jakarta/commons/proper/math/trunk/xdocs/userguide/geometry.xml Sun May 13 21:28:00 2007 @@ -38,7 +38,7 @@ a href=../apidocs/org/apache/commons/math/geometry/Vector3D.html org.apache.commons.math.geometry.Vector3D/a provides a simple vector type. One important feature is that instances of this class are guaranteed - to be immutable, this greatly simplifies modelization of dynamical systems + to be immutable, this greatly simplifies modelling dynamical systems with changing states: once a vector has been computed, a reference to it is known to preserve its state as long as the reference itself is preserved. /p @@ -66,8 +66,8 @@ p Rotations can be represented by several different mathematical entities (matrices, axe and angle, Cardan or Euler angles, - quaternions). This class presents an higher level abstraction, more - user-oriented and hiding this implementation details. Well, for the + quaternions). This class presents a higher level abstraction, more + user-oriented and hiding implementation details. Well, for the curious, we use quaternions for the internal representation. The user can build a rotation from any of these representations, and any of these representations can be retrieved from a codeRotation/code @@ -83,7 +83,7 @@ /p sourcedouble[] angles = new Rotation(matrix, 1.0e-10).getAngles(RotationOrder.XYZ);/source p - Focus is oriented on what a rotation emdo/em rather than on its + Focus is oriented on what a rotation emdoes/em rather than on its underlying representation. Once it has been built, and regardless of its internal representation, a rotation is an emoperator/em which basically transforms three dimensional vectors into other three @@ -95,7 +95,7 @@ often consider the vectors are fixed (say the Earth direction for example) and the rotation transforms the coordinates coordinates of this vector in inertial frame into the coordinates of the same vector - in satellite frame. In this case, the rotation implicitely defines the + in satellite frame. In this case, the rotation implicitly defines the relation between the two frames (we have fixed vectors and moving frame). Another example could be a telescope control application, where the rotation would transform the sighting direction at rest into the desired - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r533469 - in /jakarta/commons/proper/math/trunk/src/assembly: ./ bin.xml src.xml
Author: psteitz Date: Sat Apr 28 23:33:54 2007 New Revision: 533469 URL: http://svn.apache.org/viewvc?view=revrev=533469 Log: Added assemblies for source, binary distros. Added: jakarta/commons/proper/math/trunk/src/assembly/ jakarta/commons/proper/math/trunk/src/assembly/bin.xml (with props) jakarta/commons/proper/math/trunk/src/assembly/src.xml (with props) Added: jakarta/commons/proper/math/trunk/src/assembly/bin.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/assembly/bin.xml?view=autorev=533469 == --- jakarta/commons/proper/math/trunk/src/assembly/bin.xml (added) +++ jakarta/commons/proper/math/trunk/src/assembly/bin.xml Sat Apr 28 23:33:54 2007 @@ -0,0 +1,42 @@ +?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. +-- + +assembly + id/id + formats +formattar.gz/format +formatzip/format + /formats + includeSiteDirectorytrue/includeSiteDirectory + fileSets +fileSet + includes +includeLICENSE*/include +includeNOTICE*/include +includepom.xml/include + /includes +/fileSet +fileSet + directorytarget/directory + outputDirectory/outputDirectory + includes +include*.jar/include + /includes +/fileSet + /fileSets +/assembly Propchange: jakarta/commons/proper/math/trunk/src/assembly/bin.xml -- svn:eol-style = native Added: jakarta/commons/proper/math/trunk/src/assembly/src.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/assembly/src.xml?view=autorev=533469 == --- jakarta/commons/proper/math/trunk/src/assembly/src.xml (added) +++ jakarta/commons/proper/math/trunk/src/assembly/src.xml Sat Apr 28 23:33:54 2007 @@ -0,0 +1,50 @@ +?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. +-- +assembly + idsrc/id + formats +formattar.gz/format +formatzip/format + /formats + baseDirectory + ${artifactId}-${version}-src + /baseDirectory + fileSets +fileSet + includes +includeLICENSE*/include +includeNOTICE*/include +includepom.xml/include +includeproject.xml/include +includeproject.properties/include +includemaven.xml/include +includebuild.xml/include +includebuild.properties.sample/include +includecheckstyle.xml/include +includeRELEASE-NOTES*/include + /includes +/fileSet +fileSet + directorysrc/directory +/fileSet +fileSet + directoryxdocs/directory +/fileSet + /fileSets +/assembly + Propchange: jakarta/commons/proper/math/trunk/src/assembly/src.xml -- svn:eol-style = native - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r533416 - /jakarta/commons/proper/commons-nightly/trunk/get_files.sh
Author: psteitz Date: Sat Apr 28 12:17:52 2007 New Revision: 533416 URL: http://svn.apache.org/viewvc?view=revrev=533416 Log: Directed output to log. Modified: jakarta/commons/proper/commons-nightly/trunk/get_files.sh Modified: jakarta/commons/proper/commons-nightly/trunk/get_files.sh URL: http://svn.apache.org/viewvc/jakarta/commons/proper/commons-nightly/trunk/get_files.sh?view=diffrev=533416r1=533415r2=533416 == --- jakarta/commons/proper/commons-nightly/trunk/get_files.sh (original) +++ jakarta/commons/proper/commons-nightly/trunk/get_files.sh Sat Apr 28 12:17:52 2007 @@ -1,13 +1,18 @@ #!/bin/sh # # Pulls recent commons nightly build artifacts from vmbuild. +# Uses list of new files generated by commons_nightly.sh to generate wgets. +# # Currently only grabs distros (no jars for maven repos). +# +# Overwrites get_files.log with wget output. # # cd $HOME # Get list of recent builds generated by commons_nightly.sh on vmbuild -wget -N http://vmbuild.apache.org/~commons/nightly/new_dist_files.txt +wget -N http://vmbuild.apache.org/~commons/nightly/new_dist_files.txt\ + -o ${HOME}/get_files.log # Loop over files, munging names to wget and move into place file_list=new_dist_files.txt @@ -16,7 +21,7 @@ do # Get the file, creating vmbuild.apache.org dir structure under $HOME url=${file/\/home\/commons\/public_html\/nightly\//http:\/\/vmbuild.apache.org\/~commons\/nightly/} - wget -x $url + wget -x -nv $url -a ${HOME}/get_files.log # Move the file to people web space source=${file/\/home\/commons\/public_html\/nightly\//vmbuild.apache.org/~commons/nightly/} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r533452 - /jakarta/commons/proper/math/trunk/pom.xml
Author: psteitz Date: Sat Apr 28 17:57:39 2007 New Revision: 533452 URL: http://svn.apache.org/viewvc?view=revrev=533452 Log: Fixed test resources directory. Modified: jakarta/commons/proper/math/trunk/pom.xml Modified: jakarta/commons/proper/math/trunk/pom.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/pom.xml?view=diffrev=533452r1=533451r2=533452 == --- jakarta/commons/proper/math/trunk/pom.xml (original) +++ jakarta/commons/proper/math/trunk/pom.xml Sat Apr 28 17:57:39 2007 @@ -181,7 +181,7 @@ /resources testResources testResource - directory${pom.build.unitTestSourceDirectory}/directory + directorysrc/test/directory includes include**/*.xml/include include**/*.txt/include - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r532949 - /jakarta/commons/proper/commons-nightly/trunk/get_files.sh
Author: psteitz Date: Thu Apr 26 20:54:41 2007 New Revision: 532949 URL: http://svn.apache.org/viewvc?view=revrev=532949 Log: Fixed path errors, added -N to wget on file list. Modified: jakarta/commons/proper/commons-nightly/trunk/get_files.sh Modified: jakarta/commons/proper/commons-nightly/trunk/get_files.sh URL: http://svn.apache.org/viewvc/jakarta/commons/proper/commons-nightly/trunk/get_files.sh?view=diffrev=532949r1=532948r2=532949 == --- jakarta/commons/proper/commons-nightly/trunk/get_files.sh (original) +++ jakarta/commons/proper/commons-nightly/trunk/get_files.sh Thu Apr 26 20:54:41 2007 @@ -7,7 +7,7 @@ cd $HOME # Get list of recent builds generated by commons_nightly.sh on vmbuild -wget http://vmbuild.apache.org/~commons/nightly/new_dist_files.txt +wget -N http://vmbuild.apache.org/~commons/nightly/new_dist_files.txt # Loop over files, munging names to wget and move into place file_list=new_dist_files.txt @@ -15,13 +15,13 @@ for file in $files do # Get the file, creating vmbuild.apache.org dir structure under $HOME - url=${file/\/home\/commons\/public_html\/nightly\/\//http:\/\/vmbuild.apache.org\/~commons\/nightly/} - wget -x -w 2 $url + url=${file/\/home\/commons\/public_html\/nightly\//http:\/\/vmbuild.apache.org\/~commons\/nightly/} + wget -x $url # Move the file to people web space - source=${file/\/home\/commons\/public_html\/nightly\/\//vmbuild.apache.org/~commons/nightly/} + source=${file/\/home\/commons\/public_html\/nightly\//vmbuild.apache.org/~commons/nightly/} source_path=`dirname $source` - dest_path=${source_path/vmbuild.apache.org\/~commons\/nightly\//\/www\/people.apache.org\/builds\/jakarta-commons\/nightly/} + dest_path=${source_path/vmbuild.apache.org\/~commons\/nightly\/builds\//\/www\/people.apache.org\/builds\/jakarta-commons\/nightly/} mkdir -p $dest_path mv $source $dest_path done - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r532955 - /jakarta/commons/proper/commons-nightly/trunk/get_files.sh
Author: psteitz Date: Thu Apr 26 21:09:37 2007 New Revision: 532955 URL: http://svn.apache.org/viewvc?view=revrev=532955 Log: Made files group writable. Modified: jakarta/commons/proper/commons-nightly/trunk/get_files.sh Modified: jakarta/commons/proper/commons-nightly/trunk/get_files.sh URL: http://svn.apache.org/viewvc/jakarta/commons/proper/commons-nightly/trunk/get_files.sh?view=diffrev=532955r1=532954r2=532955 == --- jakarta/commons/proper/commons-nightly/trunk/get_files.sh (original) +++ jakarta/commons/proper/commons-nightly/trunk/get_files.sh Thu Apr 26 21:09:37 2007 @@ -24,4 +24,5 @@ dest_path=${source_path/vmbuild.apache.org\/~commons\/nightly\/builds\//\/www\/people.apache.org\/builds\/jakarta-commons\/nightly/} mkdir -p $dest_path mv $source $dest_path + chmod g+w $dest_path done - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r531257 - /jakarta/commons/proper/dbcp/trunk/maven.xml
Author: psteitz Date: Sun Apr 22 12:06:23 2007 New Revision: 531257 URL: http://svn.apache.org/viewvc?view=revrev=531257 Log: Removed release notes generation (was causing dist goal to fail due to missing version). Modified: jakarta/commons/proper/dbcp/trunk/maven.xml Modified: jakarta/commons/proper/dbcp/trunk/maven.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/maven.xml?view=diffrev=531257r1=531256r2=531257 == --- jakarta/commons/proper/dbcp/trunk/maven.xml (original) +++ jakarta/commons/proper/dbcp/trunk/maven.xml Sun Apr 22 12:06:23 2007 @@ -20,7 +20,7 @@ !-- == DIST == -- postGoal name=dist:prepare-bin-filesystem -attainGoal name=announcement:generate / + !-- attainGoal name=announcement:generate / -- j:set var=maven.dist.bin.assembly.dir value=${pom.getPluginContext('maven-dist-plugin').getVariable('maven.dist.bin.assembly.dir')} / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r531289 - /jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh
Author: psteitz Date: Sun Apr 22 15:10:04 2007 New Revision: 531289 URL: http://svn.apache.org/viewvc?view=revrev=531289 Log: Added new file list so wget from people can be selective. Modified: jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh Modified: jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh URL: http://svn.apache.org/viewvc/jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh?view=diffrev=531289r1=531288r2=531289 == --- jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh (original) +++ jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh Sun Apr 22 15:10:04 2007 @@ -460,6 +460,11 @@ find ${local_deploy_path}/maven -type f -mtime +6 -exec rm \{\} \; find ${local_deploy_path}/builds -type f -mtime +6 -exec rm \{\} \; find ${log_location} -type f -mtime +6 -exec rm \{\} \; + +# write out list of recently generated files for wget to people.apache.org +find ${local_deploy_path}/builds -type f -mtime -1 ${local_deploy_path}/new_dist_files.txt +# TODO: maven repo + # TODO: Cleanup m2 repository on people.apache.org - or keep the current cron there? exit 0 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r531337 - /jakarta/commons/proper/commons-nightly/trunk/get_files.sh
Author: psteitz Date: Sun Apr 22 22:15:42 2007 New Revision: 531337 URL: http://svn.apache.org/viewvc?view=revrev=531337 Log: Initial commit. Added: jakarta/commons/proper/commons-nightly/trunk/get_files.sh (with props) Added: jakarta/commons/proper/commons-nightly/trunk/get_files.sh URL: http://svn.apache.org/viewvc/jakarta/commons/proper/commons-nightly/trunk/get_files.sh?view=autorev=531337 == --- jakarta/commons/proper/commons-nightly/trunk/get_files.sh (added) +++ jakarta/commons/proper/commons-nightly/trunk/get_files.sh Sun Apr 22 22:15:42 2007 @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Pulls recent commons nightly build artifacts from vmbuild. +# Currently only grabs distros (no jars for maven repos). +# +# +cd $HOME + +# Get list of recent builds generated by commons_nightly.sh on vmbuild +wget http://vmbuild.apache.org/~commons/nightly/new_dist_files.txt + +# Loop over files, munging names to wget and move into place +file_list=new_dist_files.txt +files=`$file_list` +for file in $files +do + # Get the file, creating vmbuild.apache.org dir structure under $HOME + url=${file/\/home\/commons\/public_html\/nightly\/\//http:\/\/vmbuild.apache.org\/~commons\/nightly/} + wget -x -w 2 $url + + # Move the file to people web space + source=${file/\/home\/commons\/public_html\/nightly\/\//vmbuild.apache.org/~commons/nightly/} + source_path=`dirname $source` + dest_path=${source_path/vmbuild.apache.org\/~commons\/nightly\//\/www\/people.apache.org\/builds\/jakarta-commons\/nightly/} + mkdir -p $dest_path + mv $source $dest_path +done Propchange: jakarta/commons/proper/commons-nightly/trunk/get_files.sh -- svn:eol-style = native Propchange: jakarta/commons/proper/commons-nightly/trunk/get_files.sh -- svn:executable = * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r525289 - in /jakarta/commons/proper/dbcp/trunk: project.xml xdocs/navigation.xml
Author: psteitz Date: Tue Apr 3 14:35:43 2007 New Revision: 525289 URL: http://svn.apache.org/viewvc?view=revrev=525289 Log: Updated site, pom for 1.2.2 release. Modified: jakarta/commons/proper/dbcp/trunk/project.xml jakarta/commons/proper/dbcp/trunk/xdocs/navigation.xml Modified: jakarta/commons/proper/dbcp/trunk/project.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/project.xml?view=diffrev=525289r1=525288r2=525289 == --- jakarta/commons/proper/dbcp/trunk/project.xml (original) +++ jakarta/commons/proper/dbcp/trunk/project.xml Tue Apr 3 14:35:43 2007 @@ -21,7 +21,7 @@ groupIdcommons-dbcp/groupId artifactIdcommons-dbcp/artifactId inceptionYear2001/inceptionYear - currentVersion1.2.2/currentVersion + currentVersion1.3-SNAPSHOT/currentVersion nameCommons DBCP/name shortDescriptionCommons Database Connection Pooling/shortDescription descriptionCommons Database Connection Pooling/description Modified: jakarta/commons/proper/dbcp/trunk/xdocs/navigation.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/xdocs/navigation.xml?view=diffrev=525289r1=525288r2=525289 == --- jakarta/commons/proper/dbcp/trunk/xdocs/navigation.xml (original) +++ jakarta/commons/proper/dbcp/trunk/xdocs/navigation.xml Tue Apr 3 14:35:43 2007 @@ -29,7 +29,8 @@ menu name=Commons#xA0;DBCP item name=Overview href=/index.html / item name=Configuration href=/configuration.html / -item name=API#xA0;Documentation href=/apidocs/index.html/ +item name=Javadoc (1.2.2 release) href=http://jakarta.apache.org/commons/dbcp/api-1.2.2/index.html/ +item name=Javadoc (1.3-SNAPSHOT) href=apidocs/index.html/ item name=Developers#xA0;Guide href=/guide/index.html collapse=true item name=JNDI#xA0;Howto href=/guide/jndi-howto.html/ item name=Class#xA0;Diagrams href=/guide/classdiagrams.html/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r524915 - /jakarta/commons/proper/dbcp/tags/DBCP_1_2_2/
Author: psteitz Date: Mon Apr 2 13:39:33 2007 New Revision: 524915 URL: http://svn.apache.org/viewvc?view=revrev=524915 Log: tagging release (copied from RC3 tag). Added: jakarta/commons/proper/dbcp/tags/DBCP_1_2_2/ - copied from r522358, jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r522304 - /jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestBasicDataSource.java
Author: psteitz Date: Sun Mar 25 10:21:23 2007 New Revision: 522304 URL: http://svn.apache.org/viewvc?view=revrev=522304 Log: Allowed thread count post test to be off by one in DBCP-93 test for JRockit compat. Modified: jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestBasicDataSource.java Modified: jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestBasicDataSource.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestBasicDataSource.java?view=diffrev=522304r1=522303r2=522304 == --- jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestBasicDataSource.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestBasicDataSource.java Sun Mar 25 10:21:23 2007 @@ -331,6 +331,7 @@ // ignore } } -assertEquals(threadCount, Thread.activeCount()); +// Allow one extra thread for JRockit compatibility +assertTrue(Thread.activeCount() = threadCount + 1); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r522305 - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java
Author: psteitz Date: Sun Mar 25 10:26:35 2007 New Revision: 522305 URL: http://svn.apache.org/viewvc?view=revrev=522305 Log: Improved efficiency of evaluate method. Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java?view=diffrev=522305r1=522304r2=522305 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java Sun Mar 25 10:26:35 2007 @@ -255,17 +255,18 @@ var = 0.0; } else if (length 1) { double accum = 0.0; +double dev = 0.0; double accum2 = 0.0; for (int i = begin; i begin + length; i++) { -accum += Math.pow((values[i] - mean), 2.0); -accum2 += (values[i] - mean); +dev = values[i] - mean; +accum += dev * dev; +accum2 += dev; } +double len = (double) length; if (isBiasCorrected) { -var = (accum - (Math.pow(accum2, 2) / ((double) length))) / -(double) (length - 1); +var = (accum - (accum2 * accum2 / len)) / (len - 1.0); } else { -var = (accum - (Math.pow(accum2, 2) / ((double) length))) / -(double) length; +var = (accum - (accum2 * accum2 / len)) / len; } } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r522335 - in /jakarta/commons/proper/dbcp/trunk: README.txt release-notes.jsl
Author: psteitz Date: Sun Mar 25 13:00:51 2007 New Revision: 522335 URL: http://svn.apache.org/viewvc?view=revrev=522335 Log: Added notes on JDK 1.6 / JDBC 4.0. Modified: jakarta/commons/proper/dbcp/trunk/README.txt jakarta/commons/proper/dbcp/trunk/release-notes.jsl Modified: jakarta/commons/proper/dbcp/trunk/README.txt URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/README.txt?view=diffrev=522335r1=522334r2=522335 == --- jakarta/commons/proper/dbcp/trunk/README.txt (original) +++ jakarta/commons/proper/dbcp/trunk/README.txt Sun Mar 25 13:00:51 2007 @@ -12,13 +12,16 @@ from the top-level directory of the source distribution (the directory that contains the file named project.xml). -DBCP can also be build using Ant from the build.xml file. +DBCP can also be built using Ant from the build.xml file. Locations of dependent jars for the Ant build need to be specified in build.properties. There is a build.properties.sample file included in the source distribution. The binary distribution was built using JDK 1.4.2_10. The Ant build includes conditional compilation to support building on JDK 1.3. + +This release of JDBC compiles with and supports JDK 1.3 (JDBC 2.0) and +JDK 1.4-1.5 (JDBC 3.0). JDK 1.6 (JDBC 4.0) is not supported by this release. See http://jakarta.apache.org/commons/dbcp/ for additional and up-to-date information on Commons DBCP. Modified: jakarta/commons/proper/dbcp/trunk/release-notes.jsl URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/release-notes.jsl?view=diffrev=522335r1=522334r2=522335 == --- jakarta/commons/proper/dbcp/trunk/release-notes.jsl (original) +++ jakarta/commons/proper/dbcp/trunk/release-notes.jsl Sun Mar 25 13:00:51 2007 @@ -131,6 +131,9 @@ suggested workaround is to either set minIdle to 0 when using the PoolingDriver or access connections directly from the pool if minIdle is set to a positive number. See the bug report for details. + +* DBCP-191. DBCP does not compile under JDK 1.6 / JDBC 4.0. Fixing this would + break backward compatibility. For a full list of open DBCP issues see http://jakarta.apache.org/commons/dbcp/issue-tracking.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r522336 - /jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml
Author: psteitz Date: Sun Mar 25 13:01:46 2007 New Revision: 522336 URL: http://svn.apache.org/viewvc?view=revrev=522336 Log: Changed (expected) release date. Modified: jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml?view=diffrev=522336r1=522335r2=522336 == --- jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml (original) +++ jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Sun Mar 25 13:01:46 2007 @@ -38,7 +38,7 @@ titleCommons DBCP Release Notes/title /properties body -release version=1.2.2 date=2007-02-16 +release version=1.2.2 date=2007-03-31 description=This is a maintenance release containing bug fixes and enhancements. All API changes are binary compatible with version 1.2.1. action dev=dirkv type=add - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r522338 - in /jakarta/commons/proper/dbcp/trunk: manifestMods.txt project.properties
Author: psteitz Date: Sun Mar 25 13:04:18 2007 New Revision: 522338 URL: http://svn.apache.org/viewvc?view=revrev=522338 Log: Made 'Built-By' in the manifest configurable. Added: jakarta/commons/proper/dbcp/trunk/manifestMods.txt (with props) Modified: jakarta/commons/proper/dbcp/trunk/project.properties Added: jakarta/commons/proper/dbcp/trunk/manifestMods.txt URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/manifestMods.txt?view=autorev=522338 == --- jakarta/commons/proper/dbcp/trunk/manifestMods.txt (added) +++ jakarta/commons/proper/dbcp/trunk/manifestMods.txt Sun Mar 25 13:04:18 2007 @@ -0,0 +1 @@ +Built-By: psteitz Propchange: jakarta/commons/proper/dbcp/trunk/manifestMods.txt -- svn:eol-style = native Modified: jakarta/commons/proper/dbcp/trunk/project.properties URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/project.properties?view=diffrev=522338r1=522337r2=522338 == --- jakarta/commons/proper/dbcp/trunk/project.properties (original) +++ jakarta/commons/proper/dbcp/trunk/project.properties Sun Mar 25 13:04:18 2007 @@ -34,8 +34,11 @@ maven.compile.source=1.3 maven.compile.target=1.3 +# Merge in a file containing just Built-By attribute +maven.jar.manifest=${basedir}/manifestMods.txt + # Jar Manifest Additional Attributes -maven.jar.manifest.attributes.list=Implementation-Vendor-Id,X-Compile-Source-JDK,X-Compile-Target-JDK +maven.jar.manifest.attributes.list=Implementation-Vendor-Id,X-Compile-Source-JDK,X-Compile-Target-JDK,Built-By maven.jar.manifest.attribute.Implementation-Vendor-Id=org.apache maven.jar.manifest.attribute.X-Compile-Source-JDK=${maven.compile.source} maven.jar.manifest.attribute.X-Compile-Target-JDK=${maven.compile.target} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r522341 - /jakarta/commons/proper/dbcp/trunk/project.properties
Author: psteitz Date: Sun Mar 25 13:09:01 2007 New Revision: 522341 URL: http://svn.apache.org/viewvc?view=revrev=522341 Log: Remove cruft inadvertently committed in r522338 Modified: jakarta/commons/proper/dbcp/trunk/project.properties Modified: jakarta/commons/proper/dbcp/trunk/project.properties URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/project.properties?view=diffrev=522341r1=522340r2=522341 == --- jakarta/commons/proper/dbcp/trunk/project.properties (original) +++ jakarta/commons/proper/dbcp/trunk/project.properties Sun Mar 25 13:09:01 2007 @@ -38,7 +38,7 @@ maven.jar.manifest=${basedir}/manifestMods.txt # Jar Manifest Additional Attributes -maven.jar.manifest.attributes.list=Implementation-Vendor-Id,X-Compile-Source-JDK,X-Compile-Target-JDK,Built-By +maven.jar.manifest.attributes.list=Implementation-Vendor-Id,X-Compile-Source-JDK,X-Compile-Target-JDK maven.jar.manifest.attribute.Implementation-Vendor-Id=org.apache maven.jar.manifest.attribute.X-Compile-Source-JDK=${maven.compile.source} maven.jar.manifest.attribute.X-Compile-Target-JDK=${maven.compile.target} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r522355 - /jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC3/
Author: psteitz Date: Sun Mar 25 14:36:48 2007 New Revision: 522355 URL: http://svn.apache.org/viewvc?view=revrev=522355 Log: Added 1.2.2 RC3 tag. Added: jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC3/ - copied from r522353, jakarta/commons/proper/dbcp/trunk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r522434 - /jakarta/commons/proper/math/trunk/project.properties
Author: psteitz Date: Sun Mar 25 23:17:29 2007 New Revision: 522434 URL: http://svn.apache.org/viewvc?view=revrev=522434 Log: Fixed broken link to [discovery] API docs. Modified: jakarta/commons/proper/math/trunk/project.properties Modified: jakarta/commons/proper/math/trunk/project.properties URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/project.properties?view=diffrev=522434r1=522433r2=522434 == --- jakarta/commons/proper/math/trunk/project.properties (original) +++ jakarta/commons/proper/math/trunk/project.properties Sun Mar 25 23:17:29 2007 @@ -43,7 +43,7 @@ maven.javadoc.links = http://java.sun.com/j2se/1.4.2/docs/api/,\ http://jakarta.apache.org/commons/collections/api/,\ - http://jakarta.apache.org/commons/discovery/api/ + http://jakarta.apache.org/commons/discovery/apidocs/ maven.changes.issue.template=http://issues.apache.org/jira/browse/%ISSUE% - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r522436 - in /jakarta/commons/proper/math/trunk/xdocs/userguide: estimation.xml ode.xml optimization.xml
Author: psteitz Date: Sun Mar 25 23:20:03 2007 New Revision: 522436 URL: http://svn.apache.org/viewvc?view=revrev=522436 Log: Fixed xml parse errors. Modified: jakarta/commons/proper/math/trunk/xdocs/userguide/estimation.xml jakarta/commons/proper/math/trunk/xdocs/userguide/ode.xml jakarta/commons/proper/math/trunk/xdocs/userguide/optimization.xml Modified: jakarta/commons/proper/math/trunk/xdocs/userguide/estimation.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/xdocs/userguide/estimation.xml?view=diffrev=522436r1=522435r2=522436 == --- jakarta/commons/proper/math/trunk/xdocs/userguide/estimation.xml (original) +++ jakarta/commons/proper/math/trunk/xdocs/userguide/estimation.xml Sun Mar 25 23:20:03 2007 @@ -44,7 +44,9 @@ p One important class of estimation problems is weighted least squares problems. They basically consist in finding the values for some parameters psubk/sub -such that a cost function J = sum;(wsubi/sub rsubi/subsup2/sup) +such that a cost function J = +!-- TODO: get entity for summation imported -- +sum(wsubi/sub rsubi/subsup2/sup) is minimized. The various rsubi/sub terms represent the deviation rsubi/sub = messubi/sub - modsubi/sub between the measurements and the parameterized models. The wsubi/sub factors are the measurements weights, @@ -63,6 +65,7 @@ /li li they are residuals based instead of generic cost functions based +/li /ul /p Modified: jakarta/commons/proper/math/trunk/xdocs/userguide/ode.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/xdocs/userguide/ode.xml?view=diffrev=522436r1=522435r2=522436 == --- jakarta/commons/proper/math/trunk/xdocs/userguide/ode.xml (original) +++ jakarta/commons/proper/math/trunk/xdocs/userguide/ode.xml Sun Mar 25 23:20:03 2007 @@ -136,7 +136,7 @@ /p p table border=1 align=center - tr BGCOLOR=#FFtd colspan=2font size=+2Fixed Step Integrators/font/td/tr + tr BGCOLOR=#FFtd colspan=2font size=+2Fixed Step Integrators/font/td/tr tr BGCOLOR=#FFfont size=+1tdName/tdtdOrder/td/font/tr trtda href=../apidocs/org/apache/commons/math/ode/EulerIntegrator.htmlEuler/a/tdtd1/td/tr trtda href=../apidocs/org/apache/commons/math/ode/MidpointIntegrator.htmlMidpoint/a/tdtd2/td/tr @@ -147,7 +147,7 @@ /p p table border=1 align=center - tr BGCOLOR=#FFtd colspan=3font size=+2Adaptive Stepsize Integrators/font/td/tr + tr BGCOLOR=#FFtd colspan=3font size=+2Adaptive Stepsize Integrators/font/td/tr tr BGCOLOR=#FFfont size=+1tdName/tdtdIntegration Order/tdtdError Estimation Order/td/font/tr trtda href=../apidocs/org/apache/commons/math/ode/HighamHall54Integrator.htmlHigham and Hall/a/tdtd5/tdtd4/td/tr trtda href=../apidocs/org/apache/commons/math/ode/DormandPrince54Integrator.htmlDormand-Prince 5(4)/a/tdtd5/tdtd4/td/tr Modified: jakarta/commons/proper/math/trunk/xdocs/userguide/optimization.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/xdocs/userguide/optimization.xml?view=diffrev=522436r1=522435r2=522436 == --- jakarta/commons/proper/math/trunk/xdocs/userguide/optimization.xml (original) +++ jakarta/commons/proper/math/trunk/xdocs/userguide/optimization.xml Sun Mar 25 23:20:03 2007 @@ -42,6 +42,7 @@ li they do not rely on residuals-based quadratic cost functions but handle any cost functions, including non-continuous ones! +/li /ul /p /subsection - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r506067 - /jakarta/commons/proper/dbcp/trunk/NOTICE.txt
Author: psteitz Date: Sun Feb 11 08:59:42 2007 New Revision: 506067 URL: http://svn.apache.org/viewvc?view=revrev=506067 Log: Updated copyright end date. Modified: jakarta/commons/proper/dbcp/trunk/NOTICE.txt Modified: jakarta/commons/proper/dbcp/trunk/NOTICE.txt URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/NOTICE.txt?view=diffrev=506067r1=506066r2=506067 == --- jakarta/commons/proper/dbcp/trunk/NOTICE.txt (original) +++ jakarta/commons/proper/dbcp/trunk/NOTICE.txt Sun Feb 11 08:59:42 2007 @@ -1,5 +1,5 @@ Apache Jakarta Commons DBCP -Copyright 1999-2006 The Apache Software Foundation +Copyright 1999-2007 The Apache Software Foundation This product includes software developed by The Apache Software Foundation (http://www.apache.org/). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r506087 - /jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java
Author: psteitz Date: Sun Feb 11 10:37:43 2007 New Revision: 506087 URL: http://svn.apache.org/viewvc?view=revrev=506087 Log: Changed javadoc comment format to satisfy jdk 1.4 javadoc tool. Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java?view=diffrev=506087r1=506086r2=506087 == --- jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java Sun Feb 11 10:37:43 2007 @@ -882,7 +882,8 @@ /** - * pstrongBasicDataSource does NOT support this method./strong/p + * strongBasicDataSource does NOT support this method. + * /strong * * @param username Database user on whose behalf the Connection * is being made - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r506097 - /jakarta/commons/proper/dbcp/trunk/README.txt
Author: psteitz Date: Sun Feb 11 11:09:03 2007 New Revision: 506097 URL: http://svn.apache.org/viewvc?view=revrev=506097 Log: Added note on Ant build setup. Modified: jakarta/commons/proper/dbcp/trunk/README.txt Modified: jakarta/commons/proper/dbcp/trunk/README.txt URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/README.txt?view=diffrev=506097r1=506096r2=506097 == --- jakarta/commons/proper/dbcp/trunk/README.txt (original) +++ jakarta/commons/proper/dbcp/trunk/README.txt Sun Feb 11 11:09:03 2007 @@ -12,9 +12,14 @@ from the top-level directory of the source distribution (the directory that contains the file named project.xml). -DBCP can also be build using ant from the build.xml file. -This file is generated by Maven and all required jars will be -downloaded. +DBCP can also be build using Ant from the build.xml file. +Locations of dependent jars for the Ant build need to be specified in +build.properties. There is a build.properties.sample file included in the +source distribution. + +The binary distribution was build using JDK 1.4.2_10. The Ant build includes +conditional compilation to support building on JDK 1.3. See http://jakarta.apache.org/commons/dbcp/ for additional and -up-to-date information on Commons DBCP. \ No newline at end of file +up-to-date information on Commons DBCP. + - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r506102 - /jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml
Author: psteitz Date: Sun Feb 11 11:24:36 2007 New Revision: 506102 URL: http://svn.apache.org/viewvc?view=revrev=506102 Log: Fixed typos, minor edits. Modified: jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml?view=diffrev=506102r1=506101r2=506102 == --- jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml (original) +++ jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Sun Feb 11 11:24:36 2007 @@ -108,17 +108,17 @@ /action action dev=psteitz type=fix issue=DBCP-71 due-to=Douglas Squirrel Document fact that true values for testOnBorrow, testOnReturn, testWhileIdle -only have effect when validationQuery is set to a non-null string +only have effect when validationQuery is set to a non-null string. /action action dev=psteitz type=fix issue=DBCP-102 Modified activateObject in PoolableConnection to test connection properties before resetting to defaults. /action action dev=sandymac type=fix issue=DBCP-188 -maxActive in configuration.html is documented incorrectly. +Corrected maxActive documentation in configuration.html. /action action dev=psteitz type=update -Upgrade dependency to Pool 1.3. +Upgraded dependency to Pool 1.3. /action action dev=psteitz type=update issue=DBCP-187 due-to=Ralf Hauser Added connection info to SQLException messages when closed connections - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r506104 - /jakarta/commons/proper/dbcp/trunk/README.txt
Author: psteitz Date: Sun Feb 11 11:37:07 2007 New Revision: 506104 URL: http://svn.apache.org/viewvc?view=revrev=506104 Log: Fixed typo. Modified: jakarta/commons/proper/dbcp/trunk/README.txt Modified: jakarta/commons/proper/dbcp/trunk/README.txt URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/README.txt?view=diffrev=506104r1=506103r2=506104 == --- jakarta/commons/proper/dbcp/trunk/README.txt (original) +++ jakarta/commons/proper/dbcp/trunk/README.txt Sun Feb 11 11:37:07 2007 @@ -17,7 +17,7 @@ build.properties. There is a build.properties.sample file included in the source distribution. -The binary distribution was build using JDK 1.4.2_10. The Ant build includes +The binary distribution was built using JDK 1.4.2_10. The Ant build includes conditional compilation to support building on JDK 1.3. See http://jakarta.apache.org/commons/dbcp/ for additional and - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r506106 - in /jakarta/commons/proper/dbcp/trunk: project.xml xdocs/changes.xml
Author: psteitz Date: Sun Feb 11 11:39:10 2007 New Revision: 506106 URL: http://svn.apache.org/viewvc?view=revrev=506106 Log: Prepare for 1.2.2 release. Modified: jakarta/commons/proper/dbcp/trunk/project.xml jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/dbcp/trunk/project.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/project.xml?view=diffrev=506106r1=506105r2=506106 == --- jakarta/commons/proper/dbcp/trunk/project.xml (original) +++ jakarta/commons/proper/dbcp/trunk/project.xml Sun Feb 11 11:39:10 2007 @@ -21,7 +21,7 @@ groupIdcommons-dbcp/groupId artifactIdcommons-dbcp/artifactId inceptionYear2001/inceptionYear - currentVersion1.2.2-RC1/currentVersion + currentVersion1.2.2/currentVersion nameCommons DBCP/name shortDescriptionCommons Database Connection Pooling/shortDescription descriptionCommons Database Connection Pooling/description @@ -37,11 +37,11 @@ /organization licenses - license - nameThe Apache Software License, Version 2.0/name - url/LICENSE.txt/url - distributionrepo/distribution - /license +license + nameThe Apache Software License, Version 2.0/name + url/LICENSE.txt/url + distributionrepo/distribution +/license /licenses gumpRepositoryIdjakarta/gumpRepositoryId @@ -92,9 +92,9 @@ tagDBCP_1_2_1/tag /version version - id1.2.2-RC1/id - name1.2.2-RC1/name - tag/tag + id1.2.2/id + name1.2.2/name + tagDBCP_1_2_2/tag /version /versions @@ -193,7 +193,6 @@ /properties /dependency - !-- tomcat naming jars for jndi reference tests -- dependency groupIdtomcat/groupId @@ -215,19 +214,6 @@ /properties /dependency -!-- Dependency needed for generated ant build. Uncomment before - regenerating ant build -dependency - groupIdxerces/groupId - artifactIdxercesImpl/artifactId - version2.8.0/version - properties -scopetest/scope -commentOnly required for jocl tests under ant/comment - /properties -/dependency --- - !-- dragged in by tomcat-naming jars - only for jndi tests -- dependency groupIdcommons-logging/groupId @@ -269,7 +255,6 @@ /comment /properties /dependency - dependency groupIdmaven-plugins/groupId Modified: jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml?view=diffrev=506106r1=506105r2=506106 == --- jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml (original) +++ jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Sun Feb 11 11:39:10 2007 @@ -38,7 +38,7 @@ titleCommons DBCP Release Notes/title /properties body -release version=1.2.2-RC1 date=TBD +release version=1.2.2 date=2007-02-16 description=This is a maintenance release containing bug fixes and enhancements. All API changes are binary compatible with version 1.2.1. action dev=dirkv type=add - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r506113 - in /jakarta/commons/proper/dbcp/tags: DBCP_1_2_2_RC1/project.properties DBCP_1_2_2_RC2/
Author: psteitz Date: Sun Feb 11 12:12:41 2007 New Revision: 506113 URL: http://svn.apache.org/viewvc?view=revrev=506113 Log: Tagging 1.2.2-RC2. Added: jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC2/ - copied from r506109, jakarta/commons/proper/dbcp/trunk/ Modified: jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC1/project.properties Modified: jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC1/project.properties URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC1/project.properties?view=diffrev=506113r1=506112r2=506113 == --- jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC1/project.properties (original) +++ jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC1/project.properties Sun Feb 11 12:12:41 2007 @@ -57,4 +57,13 @@ maven.announcement.file=${basedir}/RELEASE-NOTES.txt maven.announcement.stylesheet.path=${basedir}/release-notes.jsl +# Repository to deploy to - internal apache repo +maven.repo.list=apache.snapshots +# Repository to deploy snapshots +maven.repo.apache.snapshots=scp://people.apache.org +maven.repo.apache.snapshots.directory=/www/people.apache.org/repository +maven.repo.apache.snapshots.username=psteitz +maven.repo.apache.snapshots.privatekey=/home/phil/.ssh/id_rsa +maven.repo.apache.snapshots.passphrase=zft0done +maven.repo.apache.snapshots.group=apcvs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r506127 - /jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC1/project.properties
Author: psteitz Date: Sun Feb 11 12:39:03 2007 New Revision: 506127 URL: http://svn.apache.org/viewvc?view=revrev=506127 Log: Reverting inadvertent change to tag. Modified: jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC1/project.properties Modified: jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC1/project.properties URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC1/project.properties?view=diffrev=506127r1=506126r2=506127 == --- jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC1/project.properties (original) +++ jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC1/project.properties Sun Feb 11 12:39:03 2007 @@ -57,13 +57,3 @@ maven.announcement.file=${basedir}/RELEASE-NOTES.txt maven.announcement.stylesheet.path=${basedir}/release-notes.jsl -# Repository to deploy to - internal apache repo -maven.repo.list=apache.snapshots - -# Repository to deploy snapshots -maven.repo.apache.snapshots=scp://people.apache.org -maven.repo.apache.snapshots.directory=/www/people.apache.org/repository -maven.repo.apache.snapshots.username=psteitz -maven.repo.apache.snapshots.privatekey=/home/phil/.ssh/id_rsa -maven.repo.apache.snapshots.passphrase=zft0done -maven.repo.apache.snapshots.group=apcvs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r500687 - in /jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp: ./ cpdsadapter/ datasources/
Author: psteitz Date: Sat Jan 27 15:33:47 2007 New Revision: 500687 URL: http://svn.apache.org/viewvc?view=revrev=500687 Log: Javadoc. Added @since tags for methods added in 1.2.2. Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingConnection.java jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingPreparedStatement.java jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingStatement.java jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDriver.java jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/cpdsadapter/DriverAdapterCPDS.java jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/InstanceKeyDataSource.java jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/PerUserPoolDataSource.java jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/SharedPoolDataSource.java Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingConnection.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingConnection.java?view=diffrev=500687r1=500686r2=500687 == --- jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingConnection.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingConnection.java Sat Jan 27 15:33:47 2007 @@ -80,6 +80,12 @@ _conn = c; } +/** + * Returns a string representation of the metadata associated with + * the innnermost delegate connection. + * + * @since 1.2.2 + */ public String toString() { String s = null; @@ -122,6 +128,13 @@ return _conn; } +/** + * Compares innermost delegate to the given connection. + * + * @param c connection to compare innermost delegate with + * @return true if innermost delegate equals codec/code + * @since 1.2.2 + */ public boolean innermostDelegateEquals(Connection c) { Connection innerCon = getInnermostDelegate(); if (innerCon == null) { Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingPreparedStatement.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingPreparedStatement.java?view=diffrev=500687r1=500686r2=500687 == --- jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingPreparedStatement.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingPreparedStatement.java Sat Jan 27 15:33:47 2007 @@ -204,7 +204,8 @@ /** * Returns a String representation of this object. * - * @return String + * @return String + * @since 1.2.2 */ public String toString() { return _stmt.toString(); Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingStatement.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingStatement.java?view=diffrev=500687r1=500686r2=500687 == --- jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingStatement.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/DelegatingStatement.java Sat Jan 27 15:33:47 2007 @@ -300,6 +300,7 @@ * Returns a String representation of this object. * * @return String + * @since 1.2.2 */ public String toString() { return _stmt.toString(); Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDriver.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDriver.java?view=diffrev=500687r1=500686r2=500687 == --- jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDriver.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingDriver.java Sat Jan 27 15:33:47 2007 @@ -193,6 +193,15 @@ } } +/** + * Invalidates the given connection. + * + * @param conn connection to invalidate + * @throws SQLException if the connection is not a + * codePoolGuardConnectionWrapper/code or an error occurs invalidating + * the connection + * @since 1.2.2 + */ public void invalidateConnection(Connection conn) throws SQLException { if (conn instanceof PoolGuardConnectionWrapper) { // normal case
svn commit: r500121 - /jakarta/commons/proper/dbcp/trunk/KEYS
Author: psteitz Date: Thu Jan 25 19:04:14 2007 New Revision: 500121 URL: http://svn.apache.org/viewvc?view=revrev=500121 Log: Added KEYS file. Added: jakarta/commons/proper/dbcp/trunk/KEYS (with props) Added: jakarta/commons/proper/dbcp/trunk/KEYS URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/KEYS?view=autorev=500121 == --- jakarta/commons/proper/dbcp/trunk/KEYS (added) +++ jakarta/commons/proper/dbcp/trunk/KEYS Thu Jan 25 19:04:14 2007 @@ -0,0 +1,103 @@ +This file contains the PGP keys of various developers. +Please don't use them for email unless you have to. Their main +purpose is code signing. + +Users: pgp KEYS + gpg --import KEYS +Developers: +pgp -kxa your name and append it to this file. +(pgpk -ll your name pgpk -xa your name) this file. +(gpg --list-sigs your name + gpg --armor --export your name) this file. + +pub 1024D/B1313DE2 2003-01-15 Robert Burrell Donkin (CODE SIGNING KEY) [EMAIL PROTECTED] +sig 3 B1313DE2 2003-01-15 Robert Burrell Donkin (CODE SIGNING KEY) [EMAIL PROTECTED] +-BEGIN PGP PUBLIC KEY BLOCK- +Version: GnuPG v1.0.7 (GNU/Linux) + +mQGiBD4lztcRBAClmlgorzoHH7IVYYerQY0e7QU0X3+4PRGGZVcbkZA3qMZV8rG3 +FSB4qp3cLX7rnco26oQbP4jSqXe1piEzYloyzYvgW9t0uFOFF7N8h9XtgA3E836v +DE/dbrteJ6wZZvS0BR1J0u2/+3nSf4bdmzjd8JPMCIp4q4ztTMTNsWKUswCg3vRA +NpL1bO0lTi5M013YhY+8wHcD/0Swc47PQuruwL+54ZMFFEHu+24UukU/7T6X2hos +ERgq9HkUyqK5mOEqp4Y4AfhwPfzp/qOFbg+Jn0IIVg3XGZhTLyeBiwHpXBhJw2TT +FXhLxm9G2PoYgkhMSgOo4wrHLCMszfvOABzCEZ4TAw3k4s3X4PSfNjHjOHUNYWhb +1BNLA/wIVDCdOyHoUvw6R0rCTKFcHSXu7XQxjYIBKGAQkcNlCZElqNVlqa+eQTPW +3AHXor/TUDzzd4afjkvmWaayGDZwOSWlsfqfPItvzTNzmE44wqfICa0/aMgkU6aZ +m/k+UMFegH1YVBaAl0aj8Gx+T5B7JqA9i7+lmw3nwB1Ge0miBbQ9Um9iZXJ0IEJ1 +cnJlbGwgRG9ua2luIChDT0RFIFNJR05JTkcgS0VZKSA8cmRvbmtpbkBhcGFjaGUu +b3JnPohZBBMRAgAZBQI+Jc7XBAsHAwIDFQIDAxYCAQIeAQIXgAAKCRDVM051sTE9 +4qflAJ9B2L8SOnFRnoJktHImJU9JO72IdwCgpM08Fi8O0dI5WuOFdz5sLobqioY= +=nk3Z +-END PGP PUBLIC KEY BLOCK- +pub 1024D/51F881B8 2003-10-20 Dirk Verbeeck [EMAIL PROTECTED] +sig 3 51F881B8 2003-10-20 Dirk Verbeeck [EMAIL PROTECTED] +sub 2048g/52C3623F 2003-10-20 +sig 51F881B8 2003-10-20 Dirk Verbeeck [EMAIL PROTECTED] + +-BEGIN PGP PUBLIC KEY BLOCK- +Version: GnuPG v1.2.2 (MingW32) + +mQGiBD+UTsIRBADCNCMgm9gVVnewQg7d4sPIQQGOQ8dTAN2Gc4U37RSZmg9z08i+ +fyHPLcTRIyf11vJCR5B1lnz8X7C/Dv4l6aLJfQfwRXxnO6YyE5bkc0kKZUacTRol +lbP9R9AuFb+Qwkuiy4wMvyT37g8fcwY/9UwolK0RV4z7WasLiVPX6Yh0KwCguy2Q +jRg+t6DF7G3K2o/exZD+3sED/2CbO7wowzZBkPH+XtzDbwVOSd/Ar+UX4yAuI+zO +jlG2+7vbHXPIFuAxG9c9RoZyMHpzN9BS2BNrzlY5N/ACWv8AsxJCQQBP6Hw9ZJLR +tehwqmGaLtCqBCA3aKHMY9mwaNOnryBgZiau3/379IL14XCMaSEbhSQrFD7pz946 +ntS/BACmlEG3pWZf2yewvj1S+eZD3KGbCCMpiZkFbTCQESbf87I9wq7M3lsH3rP4 +yayJRgy6e5754Y9K9VIRFSTHJcRtLiVjUaqYQ4ezq0fG7ysFODJgBDj0FXEmj876 +R4bZqa38VXMwr3JquZVWCzd1/FOrERPI8dIUhH8KeO++6bHY07QgRGlyayBWZXJi +ZWVjayA8ZGlya3ZAYXBhY2hlLm9yZz6IWwQTEQIAGwUCP5ROwgYLCQgHAwIDFQID +AxYCAQIeAQIXgAAKCRB3xahpUfiBuDoxAJsG25WS/vV7MktvN0CjL1kfNf7sBgCf +fbWWl1IlrOLDJh3cN3lyszX5rka5Ag0EP5ROzhAIAJaq/8+mTyzV7cUxgMgeXVi2 +BeBAKws3FCXrxsptpn0PM1Y7GoKRV6TfFnJkHUt+MwRasc9VTj443OlMOFZ5qjDB +G+B9xCpFpndEPexpp4iydCuI11QyslUNhLhGXH043OogLHHOLnxKJtSexSUxujSs +t5rQWpKhKgd+gHXY8WuZx77osS9Rhp7mlMfULtKBd/4sWnscCCz1fweowY4tZRA7 +U9T/X4UfSm1gRJNAb/BtMItZ6GQm92+vDf2i6i196m9LBZlA+NSYUncmClvcaZ0P +Hv0zGWa1q7PJlutbZ/ioWbGtsxRYBwj0+U/atlce1Fybpa2WJQLchChy//j6HwMA +AwYH/A+hdybLmU2wsc1gKIG+TPK0e9qQZHKxL9jr1v4MhuZX6vCEdpKrUS16Pa4G +9M0Lgt3Fzbv2VRHLkvfoPwgEJy5w0cn1cyAqGa9XGhJzKTR7TumOKHmKM8Zt2P1g +zCOsrmWg0qVnZG3ax3keilihOp/EW5uuD1LfP9qvEdcAfMt0kvF01eUc+OQ7Hucz +o/V5vvotVdY2eyv1xnUn+JW/tlBqEf0XMwOUlpEl9ZzMhG2qAnywJYtKCDCLDEnu +0HgNqrnaVmOZv+xZ7jJdHBzJVqt7hF96zK/B0iVgjxFVnzbMo6IFzm45o40e782v +ZMlDmMNIePtSjlun9Mj+U4ZsiSKIRgQYEQIABgUCP5ROzgAKCRB3xahpUfiBuH5H +AKCH3PRxTxzDyFd4plgw/qtu/gUuDwCePZloKPaa9VY2bdqaVdeD58ArQuQ= +=1aLn +-END PGP PUBLIC KEY BLOCK- +pub 1024D/F07D567E 2004-08-21 Phil Steitz (For signing Apache distributions) [EMAIL PROTECTED] +sig 3 F07D567E 2006-01-14 Phil Steitz (For signing Apache distributions) [EMAIL PROTECTED] +sig 7C037D42 2006-04-06 Yoav Shapira [EMAIL PROTECTED] +sig 3 F07D567E 2005-12-18 Phil Steitz (For signing Apache distributions) [EMAIL PROTECTED] +sig 3 F07D567E 2004-08-21 Phil Steitz (For signing Apache distributions) [EMAIL PROTECTED] +sub 1024g/56EEF1D4 2004-08-21 +sig F07D567E 2006-01-14 Phil Steitz (For signing Apache distributions) [EMAIL PROTECTED] + +-BEGIN PGP PUBLIC KEY BLOCK- +Version: GnuPG v1.2.7 (GNU/Linux) + +mQGiBEEn15ERBADm0iBZ/KwIiEYdLWxMIIZVzwF6My1eLRX+TLvPtOO4wf8zE9zV +fAsnMI8uCK3as3OwgqTTsKy7KQSqRyG0zd/rvCmJUEET3zHX1e5e2nYq8p1TzJzk +mR9lXe/amtRy6687fVn5hxERSlXNioh3CZdOVv1Mum5EHuzWFQGjA3CFywCgoXKg +dLJ9QuE4Btzf9ozvZRDcWYcEAN41LTmy3NYv0SfwvPnR5rEc+xw4T5p28qhPc1OP +h0jGnYgHYaM3xf0QGchvWLlwLsquxvD2K41ldIJpZm
svn commit: r500127 - /jakarta/commons/proper/dbcp/trunk/xdocs/downloads.xml
Author: psteitz Date: Thu Jan 25 19:31:00 2007 New Revision: 500127 URL: http://svn.apache.org/viewvc?view=revrev=500127 Log: Changed downloads page to refer to changes report for past release notes. Modified: jakarta/commons/proper/dbcp/trunk/xdocs/downloads.xml Modified: jakarta/commons/proper/dbcp/trunk/xdocs/downloads.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/xdocs/downloads.xml?view=diffrev=500127r1=500126r2=500127 == --- jakarta/commons/proper/dbcp/trunk/xdocs/downloads.xml (original) +++ jakarta/commons/proper/dbcp/trunk/xdocs/downloads.xml Thu Jan 25 19:31:00 2007 @@ -1,11 +1,11 @@ -?xml version=1.0 encoding=ISO-8859-1? - !-- +?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 + 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 @@ -14,43 +14,40 @@ 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. - -- +-- document properties titleDownloads/title - author email=commons-dev@jakarta.apache.orgCommons Documentation Team/author - revision$Id$/revision /properties body - section name=Releases - pThe following releases are available:/p - ul - liVersion 1.2.1 - 14 June 2004 - a href=release-notes-1.2.1.html(release notes)/a/li - liVersion 1.2 - 7 June 2004 - a href=release-notes-1.2.html(release notes)/a/li - liVersion 1.1 - 20 October 2003 - a href=release-notes-1.1.html(release notes)/a/li - liVersion 1.0 - 12 August 2002/li - /ul - br/ - p -The latest source and binary release is always available on the -a href=http://jakarta.apache.org/site/downloads/downloads_commons-dbcp.cgi; -DBCP Downloads page/a. - /p - p -Commons-DBCP depends at runtime on -a href=http://jakarta.apache.org/commons/pool/;commons-pool/a. - /p - p -Older releases are retained by the Apache Software Foundation but are -moved into a -a href=http://archive.apache.org/dist/jakarta/commons/dbcp/; -special archive area/a. - /p - p -Access to the source tree to see the latest and greatest code is possible -through a href=cvs-usage.htmlanonymous SVN access/a. - /p + section name=Download DBCP + + subsection name=Releases +pDownload the a href=http://jakarta.apache.org/site/downloads/downloads_commons-dbcp.cgi;Latest Release/a + of Commons DBCP. +/p +pFor details of whats new in each version see the a href=changes-report.htmlRelease History/a./p + /subsection + + subsection name=Nightly Builds +p + a href=http://people.apache.org/builds/jakarta-commons/nightly/commons-dbcp/;Nightly Builds/a + are built once a day from the current SVN HEAD. This is (nearly) the latest code and so should + be treated with caution. +/p + /subsection + + subsection name=Archived Releases +p + Older releases are retained by the Apache Software Foundation but are + moved into a + a href=http://archive.apache.org/dist/jakarta/commons/dbcp/; + special archive area/a. +/p + /subsection + /section + /body /document - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r500130 - /jakarta/commons/proper/dbcp/trunk/xdocs/navigation.xml
Author: psteitz Date: Thu Jan 25 19:34:40 2007 New Revision: 500130 URL: http://svn.apache.org/viewvc?view=revrev=500130 Log: Removed link to trunk javadoc. Modified: jakarta/commons/proper/dbcp/trunk/xdocs/navigation.xml Modified: jakarta/commons/proper/dbcp/trunk/xdocs/navigation.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/xdocs/navigation.xml?view=diffrev=500130r1=500129r2=500130 == --- jakarta/commons/proper/dbcp/trunk/xdocs/navigation.xml (original) +++ jakarta/commons/proper/dbcp/trunk/xdocs/navigation.xml Thu Jan 25 19:34:40 2007 @@ -47,7 +47,6 @@ item name=Issue Tracking href=/issue-tracking.html/ item name=Team href=/team-list.html/ item name=Source repositoryhref=cvs-usage.html/ -item name=Javadoc (SVN latest) href=http://jakarta.apache.org/commons/dbcp/apidocs// /menu commons; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r498900 - /jakarta/commons/proper/dbcp/trunk/maven.xml
Author: psteitz Date: Mon Jan 22 19:59:28 2007 New Revision: 498900 URL: http://svn.apache.org/viewvc?view=revrev=498900 Log: Copy release notes jsl to source distro. Modified: jakarta/commons/proper/dbcp/trunk/maven.xml Modified: jakarta/commons/proper/dbcp/trunk/maven.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/maven.xml?view=diffrev=498900r1=498899r2=498900 == --- jakarta/commons/proper/dbcp/trunk/maven.xml (original) +++ jakarta/commons/proper/dbcp/trunk/maven.xml Mon Jan 22 19:59:28 2007 @@ -50,6 +50,7 @@ ant:include name=NOTICE.txt/ ant:include name=build.properties.sample/ ant:include name=RELEASE-NOTES.txt/ +ant:include name=release-notes.jsl/ ant:include name=checkstyle.xml/ /ant:fileset /ant:copy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r498901 - /jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml
Author: psteitz Date: Mon Jan 22 20:00:31 2007 New Revision: 498901 URL: http://svn.apache.org/viewvc?view=revrev=498901 Log: Document DBCP-65 fix and remove obsoleted collections change (dependency was later removed). Modified: jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml?view=diffrev=498901r1=498900r2=498901 == --- jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml (original) +++ jakarta/commons/proper/dbcp/trunk/xdocs/changes.xml Mon Jan 22 20:00:31 2007 @@ -114,9 +114,6 @@ Modified activateObject in PoolableConnection to test connection properties before resetting to defaults. /action - action dev=bayard type=update issue=DBCP-68 due-to=Christoph Cenowa -Upgrade dependency to Collections 3.1. - /action action dev=sandymac type=fix issue=DBCP-188 maxActive in configuration.html is documented incorrectly. /action @@ -152,6 +149,13 @@ Removed dependency on Commons Collections by adding collections 2.1 sources for LRUMap and SequencedHashMap with package scope to datasources package. + /action + action dev=psteitz type=fix issue=DBCP-65 +Removed synchronization from prepareStatement methods in +PoolingConnection. Synchronization in these methods was causing +deadlocks. No resources other than the prepared statement pool are +accessed by these methods, and the pool methods are synchronized. +Also fixes DBCP-202. /action /release - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r498908 - /jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC1/
Author: psteitz Date: Mon Jan 22 20:13:57 2007 New Revision: 498908 URL: http://svn.apache.org/viewvc?view=revrev=498908 Log: Tagged 1.2.2 RC1 Added: jakarta/commons/proper/dbcp/tags/DBCP_1_2_2_RC1/ - copied from r498903, jakarta/commons/proper/dbcp/trunk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r498524 - /jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingConnection.java
Author: psteitz Date: Sun Jan 21 20:44:45 2007 New Revision: 498524 URL: http://svn.apache.org/viewvc?view=revrev=498524 Log: Removed synchronization from prepareStatement methods in PoolingConnection. Synchronization in these methods was causing deadlocks. No resources other than the prepared statement pool are accessed by these methods, and the pool methods are synchronized. Fixes DBCP-65 and DBCP-202. See discussion in DBCP-65. Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingConnection.java Modified: jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingConnection.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingConnection.java?view=diffrev=498524r1=498523r2=498524 == --- jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingConnection.java (original) +++ jakarta/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingConnection.java Sun Jan 21 20:44:45 2007 @@ -87,7 +87,7 @@ * Create or obtain a [EMAIL PROTECTED] PreparedStatement} from my pool. * @return a [EMAIL PROTECTED] PoolablePreparedStatement} */ -public synchronized PreparedStatement prepareStatement(String sql) throws SQLException { +public PreparedStatement prepareStatement(String sql) throws SQLException { try { return(PreparedStatement)(_pstmtPool.borrowObject(createKey(sql))); } catch(NoSuchElementException e) { @@ -103,7 +103,7 @@ * Create or obtain a [EMAIL PROTECTED] PreparedStatement} from my pool. * @return a [EMAIL PROTECTED] PoolablePreparedStatement} */ -public synchronized PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { +public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { try { return(PreparedStatement)(_pstmtPool.borrowObject(createKey(sql,resultSetType,resultSetConcurrency))); } catch(NoSuchElementException e) { - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r498529 - /jakarta/commons/proper/dbcp/trunk/release-notes.jsl
Author: psteitz Date: Sun Jan 21 21:30:00 2007 New Revision: 498529 URL: http://svn.apache.org/viewvc?view=revrev=498529 Log: Added known issues section. Modified: jakarta/commons/proper/dbcp/trunk/release-notes.jsl Modified: jakarta/commons/proper/dbcp/trunk/release-notes.jsl URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/release-notes.jsl?view=diffrev=498529r1=498528r2=498529 == --- jakarta/commons/proper/dbcp/trunk/release-notes.jsl (original) +++ jakarta/commons/proper/dbcp/trunk/release-notes.jsl Sun Jan 21 21:30:00 2007 @@ -114,6 +114,29 @@ /j:forEach /j:if +j:whitespace trim=false +Known Issues (signicant open issues at time of release): + +* Multiple issues (DBCP-3, DBCP-5, DBCP-23, DBCP-34, DBCP-61, DBCP-134, + DBCP-148, DBCP-180) related to DBCP connection closing semantics. Fixing + these issues could break existing clients, so they have been deferred to + a major release. + +* DBCP-44. Evictor thread in GenericObjectPool has potential for deadlock. + The GenericObjectPool Evictor thread can potentially cause a deadlock between + its connection factory and java.sql.DriverManager. The deadlock occurs when + the Evictor thread is trying to make enough connections to bring the pool's + idle connections up to what's specified in minIdle, at the same time a + connection is being requested through DriverManager.getConnection(). The + suggested workaround is to either set minIdle to 0 when using the + PoolingDriver or access connections directly from the pool if minIdle is + set to a positive number. See the bug report for details. + +For a full list of open DBCP issues see +http://jakarta.apache.org/commons/dbcp/issue-tracking.html + + +/j:whitespace !-- Nasty hack to detect a plugin until pom.type exists -- u:available file=${basedir}/plugin.jelly j:whitespace trim=false @@ -133,7 +156,6 @@ /j:whitespace /j:if - /jsl:template jsl:template match=action trim=true - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r498530 - /jakarta/commons/proper/dbcp/trunk/maven.xml
Author: psteitz Date: Sun Jan 21 21:32:15 2007 New Revision: 498530 URL: http://svn.apache.org/viewvc?view=revrev=498530 Log: Generate and include release notes with distribution. Modified: jakarta/commons/proper/dbcp/trunk/maven.xml Modified: jakarta/commons/proper/dbcp/trunk/maven.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/maven.xml?view=diffrev=498530r1=498529r2=498530 == --- jakarta/commons/proper/dbcp/trunk/maven.xml (original) +++ jakarta/commons/proper/dbcp/trunk/maven.xml Sun Jan 21 21:32:15 2007 @@ -19,14 +19,16 @@ xmlns:ant=jelly:ant !-- == DIST == -- - !-- Copied from Commons-Collections-- postGoal name=dist:prepare-bin-filesystem -j:set var=maven.dist.bin.assembly.dir value=${pom.getPluginContext('maven-dist-plugin').getVariable('maven.dist.bin.assembly.dir')} / +attainGoal name=announcement:generate / +j:set var=maven.dist.bin.assembly.dir + value=${pom.getPluginContext('maven-dist-plugin').getVariable('maven.dist.bin.assembly.dir')} / !-- Copy Files -- ant:copy todir=${maven.dist.bin.assembly.dir} ant:fileset dir=. ant:include name=NOTICE.txt/ +ant:include name=RELEASE-NOTES.txt/ /ant:fileset /ant:copy @@ -47,6 +49,7 @@ ant:fileset dir=. ant:include name=NOTICE.txt/ ant:include name=build.properties.sample/ +ant:include name=RELEASE-NOTES.txt/ ant:include name=checkstyle.xml/ /ant:fileset /ant:copy @@ -63,7 +66,7 @@ ant:fileset dir=xdocs / /ant:copy -!-- Copy XDocs -- +!-- Copy doc directory -- ant:copy todir=${maven.dist.src.assembly.dir}/doc ant:fileset dir=doc / /ant:copy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r498531 - /jakarta/commons/proper/dbcp/trunk/release-notes.jsl
Author: psteitz Date: Sun Jan 21 21:41:15 2007 New Revision: 498531 URL: http://svn.apache.org/viewvc?view=revrev=498531 Log: Fixed spelling error. Modified: jakarta/commons/proper/dbcp/trunk/release-notes.jsl Modified: jakarta/commons/proper/dbcp/trunk/release-notes.jsl URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/release-notes.jsl?view=diffrev=498531r1=498530r2=498531 == --- jakarta/commons/proper/dbcp/trunk/release-notes.jsl (original) +++ jakarta/commons/proper/dbcp/trunk/release-notes.jsl Sun Jan 21 21:41:15 2007 @@ -115,7 +115,7 @@ /j:if j:whitespace trim=false -Known Issues (signicant open issues at time of release): +Known Issues (significant open issues at time of release): * Multiple issues (DBCP-3, DBCP-5, DBCP-23, DBCP-34, DBCP-61, DBCP-134, DBCP-148, DBCP-180) related to DBCP connection closing semantics. Fixing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]