8165103: Update to "denyAfter constraint check" exception message

Anthony Scarpino anthony.scarpino at oracle.com
Mon Oct 10 18:33:30 UTC 2016


Ok.. I have included it into the first if statement..

http://cr.openjdk.java.net/~ascarpino/8165103/webrev.01/

Tony


On 10/06/2016 05:06 PM, Valerie Peng wrote:
>
> I know it's intentional, however I doubt how much difference this makes.
> Code duplication is kind of error prone.
> Just my preference,
> Valerie
>
> On 10/5/2016 8:29 PM, Anthony Scarpino wrote:
>> This is intentional as an optimization. Setting the String is only
>> needed in the failure case, so I separated them to optimize the
>> success case.  That's why I have the comment there.
>>
>> Tony
>>
>> On 10/05/2016 04:58 PM, Valerie Peng wrote:
>>>
>>> Instead of duplicating the if-check block, how about just add another
>>> String variable "dateType" and assign value to it in the first if-check
>>> block?
>>> Rest looks fine.
>>> Valerie
>>>
>>> On 10/5/2016 1:20 PM, Anthony Scarpino wrote:
>>>> Hi,
>>>>
>>>> I'd like a review of this change away from a generic error messages in
>>>> the denyAfter constraint.  The message better specify which date was
>>>> checked against the constraint now. Testing is handled elsewhere.
>>>>
>>>> http://cr.openjdk.java.net/~ascarpino/8165103/webrev/
>>>>
>>>> Tony
>>>>
>>>
>>
>




More information about the security-dev mailing list