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

Template generation fails for complex bounds on class types #30

Open
dweiss opened this issue Oct 5, 2021 · 4 comments
Open

Template generation fails for complex bounds on class types #30

dweiss opened this issue Oct 5, 2021 · 4 comments

Comments

@dweiss
Copy link
Member

dweiss commented Oct 5, 2021

public class KTypeFoo<KType extends Comparable<? extends KType>> {}

doesn't work. It should (even if we don't use it).

dweiss added a commit that referenced this issue Oct 5, 2021
@catap
Copy link

catap commented Oct 1, 2023

@dweiss any plan to fix it?

@dweiss
Copy link
Member Author

dweiss commented Oct 1, 2023

Nah, not really... Things do work for the simple types we use and making those templates work for anything would require a lot of effort (I think switching to a full type parser would be required). Realistically, I don't think I'll have the time to work on this in any near future, sorry!

@catap
Copy link

catap commented Oct 1, 2023

@dweiss maybe you now any similar template processor? I've investigated fastutil's one and it... let say not reusable outside of that project :)

@dweiss
Copy link
Member Author

dweiss commented Oct 1, 2023

Nope, I don't know if there's anything "generic" like this. fastutil has one that suits its purposes... and so does HPPC. A general Java template preprocessor would be an interesting project on its own but I haven't heard of anything like it.

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

No branches or pull requests

2 participants