jextract/jni: Propagate generic parameters to Case types of generic enums#765
Conversation
|
Oh too bad to hear you won’t have more time contributing … maybe in some hobby time :-) Thanks for all the contributions, it’s all accounted for very useful improvements! |
|
It looked like the tests were hanging, but the root cause was that I had modified the name of the test below with good intentions. As it turns out, running this test recreates the JVM internally. Since this deadlock is an unrelated issue to this PR, I am reverting the test name back to its original state. |
|
Thanks, looks good. We have a source break due to argument-parser source breaking, I'm fixing the build now and will re-run this #767 |
This PR is the first step toward supporting the extraction of generic associated values from generic enum.
Currently, the generated
Casetypes for generic enums do not carry generic parameters.While this isn't causing immediate issues, these parameters will be necessary in the future when we want to extract generic associated values from the
Case.This PR focuses solely on propagating the generic parameters of the enum type down to its
Casetype.During this work, I encountered and fixed an issue in wrap-java where translation was failing when a nested type's parent type was generic.
Note
I have loved contributing to
swift-javafor a half year, but unfortunately, I have run out of time to continue doing so.While I will keep following the development of
swift-java, I won't be able to actively contribute as I did before.Thank you so much for all your valuable code reviews.