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
Recently I was playing around and trying to integrate arrow-optics into one of our kotlin projects with spring-boot, but stumbled upon an issue.
When declaring a typealias in the same file where I have @optics annotation, build of the gradle application fails with Duplicated JVM name error.
Below is the example:
packagecom.example.arrow.opticsimportarrow.optics.opticsimportjava.util.UUIDtypealiasOrderId=UUID
@optics
data classOrder(valid:OrderId) {
companionobject
}
Error message:
Task :compileKotlin FAILED
e: /Users/mirboboev/playground/arrow.optics/build/generated/ksp/main/kotlin/com/example/arrow/optics/arrow/optics/Order.kt: (1, 1): Duplicate JVM class name 'com/example/arrow/optics/arrow/optics/OrderKt' generated from: OrderKt, OrderKt
e: /Users/mirboboev/playground/arrow.optics/src/main/kotlin/com/example/arrow/optics/arrow/optics/Order.kt: (1, 1): Duplicate JVM class name 'com/example/arrow/optics/arrow/optics/OrderKt' generated from: OrderKt, OrderKt
Possible solutions is to explicitly specify java class name in the beginning of the file like in the example below:
@file:JvmName("OrderJvm")
Thanks 🙏🏼
The text was updated successfully, but these errors were encountered:
Hello arrow ⏫ team,
Recently I was playing around and trying to integrate
arrow-optics
into one of ourkotlin
projects withspring-boot
, but stumbled upon an issue.When declaring a
typealias
in the same file where I have@optics
annotation, build of the gradle application fails withDuplicated JVM name error
.Below is the example:
Error message:
Possible solutions is to explicitly specify java class name in the beginning of the file like in the example below:
@file:JvmName("OrderJvm")
Thanks 🙏🏼
The text was updated successfully, but these errors were encountered: