-
Notifications
You must be signed in to change notification settings - Fork 39
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
Service from base class #548
Labels
enhancement
New feature or request
Milestone
Comments
Hi, that was working once, but it looks like it got broken. I fixed it and it will work again with >= 2.0.0-beta2 |
Release 2.0.0 says this was fixes... so I guess the issue should be closed? |
@sschuberth You are right, thanks |
Maybe a good idea to document that this is supported. |
For future readers - latest pre- kotlin 2.0 working version is 1.11.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
I am trying to make a Ktorit service that would extend a base service.
Example:
The goal is to have a
CustomService
on which bothbaseCall
andotherCall
are available.Ksp compiles but I am getting this runtime error when calling
CustomMessageService.baseCall()
:Creating CustomMessageService as usual
ktorfit.create<CustomMessageService()
.Describe the solution you'd like
The error makes sense - the generated
CustomMessageServiceImpl
extendsBaseMessageService by _BaseMessageServiceImpl()
. That new instance does not have the _converter because it is created bycreate
which is not called here.Not sure what the solution could be. I understand this usecase is not supported now? I may try to hack something.
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: