Re: svn commit: r1854366 - /ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r1854366 - /ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java

Jacques Le Roux
Administrator
Hi Mathieu,

Did you report to Apache Commons DBCP? Else should we not?

Thanks

Jacques

Le 26/02/2019 à 11:09, [hidden email] a écrit :

> Author: jleroux
> Date: Tue Feb 26 10:09:40 2019
> New Revision: 1854366
>
> URL: http://svn.apache.org/viewvc?rev=1854366&view=rev
> Log:
> Improved: no functional change
>
> Fixes a typo in comment. I checked it's still not implemented in last DBCP (2.6.0)
>
> Modified:
>      ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java
>
> Modified: ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java
> URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java?rev=1854366&r1=1854365&r2=1854366&view=diff
> ==============================================================================
> --- ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java (original)
> +++ ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java Tue Feb 26 10:09:40 2019
> @@ -69,7 +69,7 @@ public class DebugManagedDataSource<C ex
>  
>       // Ensures that the close() method does not throw an InterruptedException
>       // to conform to the AutoCloseable interface.
> -    // This is fixing what should be down in org.apache.commons.dbcp2.PoolingDataSource.
> +    // This is fixing what should be done in org.apache.commons.dbcp2.PoolingDataSource.
>       @Override
>       public void close() throws SQLException, RuntimeException {
>           try {
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r1854366 - /ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java

Mathieu Lirzin
Hello Jacques,

Jacques Le Roux <[hidden email]> writes:

> Did you report to Apache Commons DBCP? Else should we not?

No I didn't report.  I think it would be fine to report the issue that
‘ManagedDataSource’ should declare more specific exceptions than
‘Exception’ for the ‘close’ method to allow the compiler to check that
no ‘InterruptedException’ are thrown.

> Le 26/02/2019 à 11:09, [hidden email] a écrit :
>> Author: jleroux
>> Date: Tue Feb 26 10:09:40 2019
>> New Revision: 1854366
>>
>> URL: http://svn.apache.org/viewvc?rev=1854366&view=rev
>> Log:
>> Improved: no functional change
>>
>> Fixes a typo in comment. I checked it's still not implemented in last DBCP (2.6.0)
>>
>> Modified:
>>      ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java
>>
>> Modified: ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java
>> URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java?rev=1854366&r1=1854365&r2=1854366&view=diff
>> ==============================================================================
>> --- ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java (original)
>> +++ ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java Tue Feb 26 10:09:40 2019
>> @@ -69,7 +69,7 @@ public class DebugManagedDataSource<C ex
>>         // Ensures that the close() method does not throw an
>> InterruptedException
>>       // to conform to the AutoCloseable interface.
>> -    // This is fixing what should be down in org.apache.commons.dbcp2.PoolingDataSource.
>> +    // This is fixing what should be done in org.apache.commons.dbcp2.PoolingDataSource.
>>       @Override
>>       public void close() throws SQLException, RuntimeException {
>>           try {

Thanks.

--
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761  070D 0ADE E100 9460 4D37
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r1854366 - /ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java

Jacques Le Roux
Administrator
Thanks Mathieu,

Done with https://github.com/apache/commons-dbcp/pull/30

Jacques

Le 26/02/2019 à 12:37, Mathieu Lirzin a écrit :

> Hello Jacques,
>
> Jacques Le Roux <[hidden email]> writes:
>
>> Did you report to Apache Commons DBCP? Else should we not?
> No I didn't report.  I think it would be fine to report the issue that
> ‘ManagedDataSource’ should declare more specific exceptions than
> ‘Exception’ for the ‘close’ method to allow the compiler to check that
> no ‘InterruptedException’ are thrown.
>
>> Le 26/02/2019 à 11:09, [hidden email] a écrit :
>>> Author: jleroux
>>> Date: Tue Feb 26 10:09:40 2019
>>> New Revision: 1854366
>>>
>>> URL: http://svn.apache.org/viewvc?rev=1854366&view=rev
>>> Log:
>>> Improved: no functional change
>>>
>>> Fixes a typo in comment. I checked it's still not implemented in last DBCP (2.6.0)
>>>
>>> Modified:
>>>       ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java
>>>
>>> Modified: ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java
>>> URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java?rev=1854366&r1=1854365&r2=1854366&view=diff
>>> ==============================================================================
>>> --- ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java (original)
>>> +++ ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java Tue Feb 26 10:09:40 2019
>>> @@ -69,7 +69,7 @@ public class DebugManagedDataSource<C ex
>>>          // Ensures that the close() method does not throw an
>>> InterruptedException
>>>        // to conform to the AutoCloseable interface.
>>> -    // This is fixing what should be down in org.apache.commons.dbcp2.PoolingDataSource.
>>> +    // This is fixing what should be done in org.apache.commons.dbcp2.PoolingDataSource.
>>>        @Override
>>>        public void close() throws SQLException, RuntimeException {
>>>            try {
> Thanks.
>
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r1854366 - /ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java

Jacques Le Roux
Administrator
https://issues.apache.org/jira/browse/DBCP-539

Jacques

Le 27/02/2019 à 12:29, Jacques Le Roux a écrit :

> Thanks Mathieu,
>
> Done with https://github.com/apache/commons-dbcp/pull/30
>
> Jacques
>
> Le 26/02/2019 à 12:37, Mathieu Lirzin a écrit :
>> Hello Jacques,
>>
>> Jacques Le Roux <[hidden email]> writes:
>>
>>> Did you report to Apache Commons DBCP? Else should we not?
>> No I didn't report.  I think it would be fine to report the issue that
>> ‘ManagedDataSource’ should declare more specific exceptions than
>> ‘Exception’ for the ‘close’ method to allow the compiler to check that
>> no ‘InterruptedException’ are thrown.
>>
>>> Le 26/02/2019 à 11:09, [hidden email] a écrit :
>>>> Author: jleroux
>>>> Date: Tue Feb 26 10:09:40 2019
>>>> New Revision: 1854366
>>>>
>>>> URL: http://svn.apache.org/viewvc?rev=1854366&view=rev
>>>> Log:
>>>> Improved: no functional change
>>>>
>>>> Fixes a typo in comment. I checked it's still not implemented in last DBCP (2.6.0)
>>>>
>>>> Modified:
>>>> ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java
>>>>
>>>> Modified: ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java
>>>> URL:
>>>> http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java?rev=1854366&r1=1854365&r2=1854366&view=diff
>>>> ==============================================================================
>>>> --- ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java (original)
>>>> +++ ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java Tue Feb 26 10:09:40
>>>> 2019
>>>> @@ -69,7 +69,7 @@ public class DebugManagedDataSource<C ex
>>>>          // Ensures that the close() method does not throw an
>>>> InterruptedException
>>>>        // to conform to the AutoCloseable interface.
>>>> -    // This is fixing what should be down in org.apache.commons.dbcp2.PoolingDataSource.
>>>> +    // This is fixing what should be done in org.apache.commons.dbcp2.PoolingDataSource.
>>>>        @Override
>>>>        public void close() throws SQLException, RuntimeException {
>>>>            try {
>> Thanks.
>>
>