selenium-google-code-issue-archive icon indicating copy to clipboard operation
selenium-google-code-issue-archive copied to clipboard

Type safety issues with TouchActions class

Open lukeis opened this issue 8 years ago • 2 comments

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

lukeis avatar Mar 04 '16 09:03 lukeis

Reported by barancev on 2014-10-03 12:00:41

  • Labels added: Lang-Java

lukeis avatar Mar 04 '16 09:03 lukeis

Reported by luke.semerau on 2015-09-17 17:47:06

  • Labels added: Restrict-AddIssueComment-Commit

lukeis avatar Mar 04 '16 09:03 lukeis