You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Felix Schumacher <fe...@internetallee.de> on 2015/12/03 22:12:34 UTC

Re: svn commit: r1715633 - in /tomcat/trunk: modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ClassLoaderUtil.java webapps/docs/changelog.xml

Am 30.11.2015 um 16:43 schrieb Christopher Schultz:
> Felix,
>
> On 11/24/15 3:47 PM, Felix Schumacher wrote:
>> Am 23.11.2015 um 03:19 schrieb Huxing Zhang:
>>> Hi fschumacher,
>>>
>>> Just a friendly reminder that I had a discussion with kkolinko about
>>> this before.
>>> I seems that it is better to explicitly define the default value
>>> rather than the Boolean.getBoolean syntactic sugar.
>> Thanks for the hint.
>>
>> I will change it.
> I'm not sure why Konstantin had a strong opinion on this;
> Boolean.getBoolean has a well-defined default value of Boolean.FALSE. I
> suppose it's a little more readable when you have the default explicitly
> in there.
That was his main point.
>
> But:
>
>>> -
>>> Boolean.getBoolean(System.getProperty("org.apache.tomcat.jdbc.pool.onlyAttemptCurrentClassLoader",
>>> "false"));
> This was definitely wrong... it's looking-up the system property called
> "[something]" or "false" depending upon the value of
> org.apache.tomcat.jdbc.pool.onlyAttemptCurrentClassLoader. This is what
> was intended:
>
> Boolean.valueOf(System.getProperty("org.apache.tomcat.jdbc.pool.onlyAttemptCurrentClassLoader","false")
right.

>
>>> +
>>> Boolean.getBoolean("org.apache.tomcat.jdbc.pool.onlyAttemptCurrentClassLoader");
> ... and I have no objection to the above.
I will not change it back again :) but thanks for the review.

Regards,
  Felix
>
> -chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org