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

[javacpp-project] Problem with multiple inheritance in C++ #360

Closed
AnDevi opened this issue Nov 14, 2019 · 9 comments
Closed

[javacpp-project] Problem with multiple inheritance in C++ #360

AnDevi opened this issue Nov 14, 2019 · 9 comments
Labels

Comments

@AnDevi
Copy link

AnDevi commented Nov 14, 2019

Here is my example code:
https://github.com/AnDevi/javacpp_example/tree/master/example

What I want do is generate class MyClass (https://github.com/AnDevi/javacpp_example/blob/master/example/libs/example/include/example.hpp) without generating BaseA, BaseB and BaseC classes in java file (https://github.com/AnDevi/javacpp_example/blob/master/example/ExampleLibrary.java).
MyClass have to inherit after 3+ classes.
Is it possible ? I assume that it is, but I have to some special tricks in config file (https://github.com/AnDevi/javacpp_example/blob/master/example/ExampleConfig.java) to handle it.

Thanks a lot for help !

@saudet
Copy link
Member

saudet commented Nov 14, 2019

Ah, I see, you did try to do the right thing as explained in a previous message you sent to the mailing list, but you're getting a compile error:
https://groups.google.com/forum/#!msg/javacpp-project/xyosH9eyQC4/ahGDXp_JAwAJ

@saudet saudet added bug and removed enhancement labels Nov 14, 2019
saudet added a commit that referenced this issue Nov 15, 2019
@saudet
Copy link
Member

saudet commented Nov 15, 2019

Fixed in commit 3e5a0df. Please give it a try with the snapshots and something like:
infoMap.put(new Info("A", "B", "C").pointerTypes("Pointer")).
Thanks for reporting this issue!

@AnDevi
Copy link
Author

AnDevi commented Nov 15, 2019 via email

@saudet
Copy link
Member

saudet commented Nov 15, 2019

@AnDevi
Copy link
Author

AnDevi commented Nov 15, 2019 via email

@saudet
Copy link
Member

saudet commented Nov 15, 2019 via email

@AnDevi
Copy link
Author

AnDevi commented Nov 15, 2019 via email

@AnDevi
Copy link
Author

AnDevi commented Nov 15, 2019 via email

@saudet
Copy link
Member

saudet commented Apr 15, 2020

Fix included in just released JavaCPP 1.5.3. Thanks for reporting and for testing!

@saudet saudet closed this as completed Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants