Skip to content

The return type is incompatible #323

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
hsoehalim opened this issue Feb 23, 2016 · 6 comments
Closed

The return type is incompatible #323

hsoehalim opened this issue Feb 23, 2016 · 6 comments
Labels

Comments

@hsoehalim
Copy link

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);
}

screen shot 2016-02-22 at 5 35 18 pm

@TikhomirovSergey
Copy link
Contributor

It is known issue.
It is possible that this thing is a bug of javac compiler. Ecclipse compiler is required.

How to resolve:

  • Install intellijIDEA.
  • import the maven project
  • choose Eclipse compiler.

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

@vikramvi
Copy link

@TikhomirovSergey This issue is there with Eclipse IDE version 4.5.2. Please clarify how to resolve it ?

@SrinivasanTarget
Copy link
Member

@vikramvi It will be resolved when #413 is merged.

@vikramvi
Copy link

Thanks @SrinivasanTarget , will wait for next release then.

@SrinivasanTarget
Copy link
Member

@vikramvi There is a solution above, you can still use it.

@TikhomirovSergey
Copy link
Contributor

Fixed at #413

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants