Skip to content

The return type is incompatible #323

Closed

Description

@hsoehalim

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

Activity

  1. TikhomirovSergey commented on Feb 23, 2016

    @TikhomirovSergey
    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

  2. vikramvi commented on Jun 13, 2016

    @vikramvi

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

  3. SrinivasanTarget commented on Jun 13, 2016

    @SrinivasanTarget
    Member

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

  4. vikramvi commented on Jun 13, 2016

    @vikramvi

    Thanks @SrinivasanTarget , will wait for next release then.

  5. SrinivasanTarget commented on Jun 13, 2016

    @SrinivasanTarget
    Member

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

  6. TikhomirovSergey commented on Jun 15, 2016

    @TikhomirovSergey
    Contributor

    Fixed at #413

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions