You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.
Love the concept here, but I need it to work for a class with a generic type argument:
import com.thinkinglogic.builder.annotation.Builder
@Builder
data class CoreSearchResponse<T>(
val results: List<T>,
val totalAvailableRecords: Long
)
When I compile this, I get the following error:
[ERROR] [kapt] An exception occurred: java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$TypeVariableSymbol cannot be cast to javax.lang.model.element.TypeElement
When I don't use a generic type, it works perfectly. This one compiles without issue:
import com.thinkinglogic.builder.annotation.Builder
@Builder
data class CoreSearchResponse(
val results: List<String>,
val totalAvailableRecords: Long
)
Not sure what can be done about this. Thanks.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Love the concept here, but I need it to work for a class with a generic type argument:
When I compile this, I get the following error:
[ERROR] [kapt] An exception occurred: java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$TypeVariableSymbol cannot be cast to javax.lang.model.element.TypeElement
When I don't use a generic type, it works perfectly. This one compiles without issue:
Not sure what can be done about this. Thanks.
The text was updated successfully, but these errors were encountered: