The return type is incompatible
hsoehalim opened this issue · 6 comments
Hi There,
I'm new at this, perhaps I missed something during setup. I'm using eclipse Mars and jdk 1.7. After checking out the github project, I'm seeing a lot of compilation errors. In particulars "The return type is incompatible" on io.appium.java_client.AppiumDriver class. For example:
Multiple markers at this line
- The return type is incompatible with WebDriver.findElements(By)
- overrides
io.appium.java_client.DefaultGenericMobileDriver<RequiredElementType>.findElements
@Override
public List<RequiredElementType> findElements(By by){
return super.findElements(by);
}
It is known issue.
It is possible that this thing is a bug of javac compiler. Ecclipse compiler is required.
How to resolve:
This was mentioned at https://github.com/appium/java-client/blob/master/README.md#note-to-developers
This problem will autamatically resolved if this PR is merged: SeleniumHQ/selenium#863
@TikhomirovSergey This issue is there with Eclipse IDE version 4.5.2. Please clarify how to resolve it ?
Thanks @SrinivasanTarget , will wait for next release then.
@vikramvi There is a solution above, you can still use it.
Fixed at #413