Request for review: 8017611: Auto corrector for mistyped vm options

Coleen Phillimore coleen.phillimore at oracle.com
Wed Jun 26 05:55:01 PDT 2013


I still don't think there's a webrev on the hotspot-dev mailing list.   
Can you (re)post one?
Thanks,
Coleen

On 6/26/2013 8:31 AM, Dmitry Samersoff wrote:
> Bengt,
>
> OK.  In this case I'm OK not having this flag.
>
> Sorry for a noise.
>
> -Dmitry
>
> On 2013-06-26 16:29, Bengt Rutisson wrote:
>> Dmitry,
>>
>> I think you are miss understanding the change and the flag.
>>
>> The proposed change does not auto correct anything (despite the subject
>> line). It just adds extra information to the already existing error
>> messages when you make a spelling mistake on your command line.
>>
>> Bengt
>>
>> On 6/26/13 11:49 AM, Dmitry Samersoff wrote:
>>> Bengt,
>>>
>>> I don't have a link to webrev, but we *do need* a flag that
>>> turns this behavior on and it have to be off by default in production
>>> build.
>>>
>>> It's sysadmin nightmare when a program auto correct mistypings in
>>> startup scripts rather than abort immediately.
>>>
>>> -Dmitry
>>>
>>>
>>>
>>> On 2013-06-26 09:05, Bengt Rutisson wrote:
>>>> Tao,
>>>>
>>>> This is great! Thanks for doing this! :)
>>>>
>>>> I haven't looked closely at the code yet, so this is not a review, but I
>>>> agree with Christian that we don't need a flag for the "fuzziness".
>>>> Also, it seems like it would be pretty straight forward to write a
>>>> couple of tests for this feature. Maybe just two simple JTreg tests, one
>>>> that tests that a misspelled command line option gets the right
>>>> suggestion and one correctly spelled option that does not cause a
>>>> suggestion.
>>>>
>>>> Thanks again for coming up with this!
>>>> Bengt
>>>>
>>>>
>>>>
>>>> On 6/25/13 8:33 PM, Tao Mao wrote:
>>>>> OK, I'll move the flag to be local.
>>>>>
>>>>> Thanks.
>>>>> Tao
>>>>>
>>>>> On 6/25/13 11:13 AM, Vladimir Kozlov wrote:
>>>>>> Yes we need this! How many times I mistyped PrintMiscellaneous :( ?
>>>>>>
>>>>>> Why we need additional flag VMOptionsFuzzyMatchSimilarity (we have
>>>>>> too many already)? Can you use a local constant?
>>>>>>
>>>>>> Where is whole Christian's mail?
>>>>>>
>>>>>> I redirected this RFR to hotspot-dev since it affects everyone.
>>>>>>
>>>>>> thanks,
>>>>>> Vladimir
>>>>>>
>>>>>> On 6/25/13 11:01 AM, Tao Mao wrote:
>>>>>>> Hi Chris,
>>>>>>>
>>>>>>> So you suggest the flag be "notproduct" or "develop"?
>>>>>>>
>>>>>>> Thanks.
>>>>>>> Tao
>>>>>>>
>>>>>>> On 6/25/13 10:59 AM, Christian Thalinger wrote:
>>>>>>>> I think we can do one step further to interpret the user's intent
>>>>>>>> and
>>>>>>>> suggest the correct VM options. Then i start to imagine that we have
>>>>>>>> something like this
>



More information about the hotspot-dev mailing list