RFR 9: 8178077: jshell tool: crash on ctrl-up or ctrl-down
Robert Field
robert.field at oracle.com
Wed Apr 5 21:14:54 UTC 2017
Excellent! Nice to be able to do UI testing.
Robert
On April 5, 2017 1:51:06 PM Jan Lahoda <jan.lahoda at oracle.com> wrote:
> On 5.4.2017 19:52, Robert Field wrote:
>> Fix looks good.
>
> Thanks.
>
>>
>> If there is some way to test this....
>
> I tried to generalize and use the MergedTabShiftTabTest here:
> http://cr.openjdk.java.net/~jlahoda/8178077/webrev.langtools.00/
>
> Thanks,
> Jan
>
>>
>> -Robert
>>
>> On 04/05/17 10:46, Jan Lahoda wrote:
>>> Hi,
>>>
>>> The bug is a crash when the user presses Ctrl-up/down (which should
>>> navigate to the previous/next snippet). This is broken because this
>>> (needs to) invoke a private method on ConsoleReader, and it lookups
>>> the method using "in.getClass().getDeclaredMethod", which fails if
>>> "in" is a subclass of ConsoleReader not a ConsoleReader itself. The
>>> fix is to be more precise and use
>>> "ConsoleReader.class.getDeclaredMethod".
>>>
>>> Bug: https://bugs.openjdk.java.net/browse/JDK-8178077
>>> Webrev: http://cr.openjdk.java.net/~jlahoda/8178077/webrev.00/
>>>
>>> Any feedback is welcome,
>>> Jan
>>
More information about the kulla-dev
mailing list