-
Notifications
You must be signed in to change notification settings - Fork 14
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
Type K (+TypeVariableImpl) is not supported yet. #138
Comments
Hello @landon-L . You can use the "-X" option. Ex : May I ask which version of the plugin are you using? |
Hello @landon-L. Do you have any more information about this bug? Which version of the plugin are you using? |
I've encountered this error using version of 0.0.20. I can't find additional information about the error, even after narrowing down to a specific RestController.
|
Turns out, I have a model class that extends the I'm willing to help. |
Hello @avk458 Thank you very much for the bug report / analysis. It would help me if you create a PR with a test in error reproducing your case. Generics are the biggest burden of this project and it is not the simplest section to re-dive into after two years. :p On a side note, I'm currently in holidays very far away from home till the end of the month. So I'll not be able to work on it until then. Hope this can wait for you. :( |
@kbuntrock I noticed that #144 already has a PR that is similar to my case. Have a nice trip. :) |
Hello @avk458 . I'm currently working on your problem. Even though it looks similar to the issue #144, this is not exactly the same case. Could you provide an example of your custom model class extending an hashmap - associated with the partial openapi documentation you would expect for this class? Thank you by advance and wish you a good day! Kind regards, |
If you define a type like this public class Pager<T> extends HashMap<String, Object> {
public <T> Pager<T> rows(List<T> rows) {
this.put("rows", rows);
return this;
}
} This error will raise |
Thanks, looking into it. |
This example was not compiling. I extrapolated it to something like this in order to have the two possibilities I can imagine: public class Pager<T> extends HashMap<String, Object> {
public Pager<T> rows(List<T> rows) {
this.put("rows", rows);
return this;
}
public <G> Pager<T> lines(List<G> lines) {
this.put("lines", lines);
return this;
}
} Even though this example was not working (now fixed), I did not stumble on the same error. Could you pull again locally the current dev version, build and install it locally (like with "mvn clean install -DskipTests" for example), and try the current local "0.0.22-SNAPSHOT" in your projet? |
In a particular case like the one @PostMapping(value = "devices/command", params = "SWITCH_ON")
public void switchOn() {
// mothod x
}
@PostMapping(value = "devices/command", params = "SWITCH_OFF")
public void switchOff() {
// mothod y
} I wish I had more time to make a PR. |
Hello. No worries about your time, I'm glad you're providing me valuable information about ways to improve this plugin. I'll also try to make generic errors causes easier to spot. |
How to display detailed logs when encountering this prompt, "Type K (+TypeVariableImpl) is not supported yet."
The text was updated successfully, but these errors were encountered: