Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Name clash for overloading in subclass, due to name erase #25

Open
sighingnow opened this issue Feb 7, 2022 · 0 comments
Open

Name clash for overloading in subclass, due to name erase #25

sighingnow opened this issue Feb 7, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@sighingnow
Copy link
Collaborator

Consider,

public interface ArrayBuilder extends CXXPointer {
  @CXXValue
  Status Finish(@FFITypeAlias("std::shared_ptr<arrow::Array>") shared_ptr<Array> out);
}

and

public interface FixedSizeBinaryBuilder extends ArrayBuilder, FFIPointer {
  @CXXValue
  Status Finish(
      @FFITypeAlias("std::shared_ptr<arrow::FixedSizeBinaryArray>") shared_ptr<FixedSizeBinaryArray> out);
}

It won't succeed, as the child class will re-generate a copy of its parent's methods, but as their arguments are both shared_ptr<...>, it will be though as the same method in the context of Java language.

@sighingnow sighingnow added the bug Something isn't working label Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant