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

@CXXSuperTemplate doens't work if the super class is placed in another file #23

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

Comments

@sighingnow
Copy link
Collaborator

For class

@FFITypeAlias("arrow::Result")
@FFIGen(templates = @CXXTemplate(cxx = "int", java = "Integer"))
@CXXSuperTemplate(
        type = "arrow.EqualityComparable",
        template = @CXXTemplate(java = "arrow.Result<T>", cxx = "arrow::Result<T>")
)
@CXXHead(
        system = "arrow/result.h"
)
public interface Result<T> extends EqualityComparable<Result<T>>, CXXPointer {
}

and class

@FFITypeAlias("arrow::util::EqualityComparable")
@FFIGen
@CXXHead(
        system = "arrow/util/compare.h"
)
public interface EqualityComparable<T> extends CXXPointer
{
}

The CXXSuperTemplate doesn't work if they are placed in different java files, but works if been placed in the the file.

@sighingnow sighingnow added the bug Something isn't working label Feb 7, 2022
sighingnow added a commit that referenced this issue Feb 8, 2022
See also #23.

Signed-off-by: Tao He <sighingnow@gmail.com>
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