selenium-google-code-issue-archive
selenium-google-code-issue-archive copied to clipboard
Type safety issues with TouchActions class
Originally reported on Google Code with ID 7990
The challenge of the builder pattern when extending the class is that the subclass must
either redefine all the methods of the parent class or the subclass will return instances
with a static type signature of the parent class.
What steps will reproduce the problem?
1. The following will fail to compile "new TouchActions(driver).click()
.singleTap(element)"
I have a pull request that fixes this bug: https://github.com/SeleniumHQ/selenium/pull/259.
I have completed the CLA agreement.
Reported by michael.m.spiegel
on 2014-10-03 01:45:05
Reported by barancev
on 2014-10-03 12:00:41
- Labels added: Lang-Java
Reported by luke.semerau
on 2015-09-17 17:47:06
- Labels added: Restrict-AddIssueComment-Commit