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

@EachProperty with abstract class override + KSP does not compile #10505

Closed
hrothwell opened this issue Feb 17, 2024 · 0 comments · Fixed by #10523
Closed

@EachProperty with abstract class override + KSP does not compile #10505

hrothwell opened this issue Feb 17, 2024 · 0 comments · Fixed by #10523

Comments

@hrothwell
Copy link
Contributor

Expected Behavior

While using @EachProperty on a class extending an abstract class + overriding an abstract value and KSP for processing I should get the same behavior as with KAPT processing in the same scenario (working)

Actual Behaviour

While using KSP, @EachProperty coupled with an abstract class + override results in error along the lines of:

Task :kspKotlin FAILED
e: [ksp] Originating element: thing
e: [ksp] C:/Users/hroth/git/micronaut-ksp-bug/src/main/kotlin/com/github/hrothwell/Example.kt:12: Prefix is required for com.github.hrothwell.MyAbstractClass
e: java.lang.IllegalStateException: Prefix is required for com.github.hrothwell.MyAbstractClass

Steps To Reproduce

  1. create an abstract class with an abstract value
  2. create a class annotated with @EachProperty that implements said abstract class
  3. run ./gradlew clean build

alternative: In example application linked, uncomment these lines and run ./gradlew clean build

Environment Information

  • operating system: Mac 14.1.2 + Windows 11 (likely others)

Example Application

https://github.com/hrothwell/micronaut-ksp-bug

Version

4.3.2

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

Successfully merging a pull request may close this issue.

1 participant