Skip to content

Update kotlin-result#20

Merged
adaurban merged 7 commits into
mainfrom
19-update-kotlin-result
Jun 16, 2025
Merged

Update kotlin-result#20
adaurban merged 7 commits into
mainfrom
19-update-kotlin-result

Conversation

@adaurban

@adaurban adaurban commented Jun 16, 2025

Copy link
Copy Markdown
Collaborator

Migrated to custom v1.1.22 release instead of 2.0.1 due to:

Name mangling is especially a problem with spring integration, for example, implicit field of @DgsQuery taken from method name does not work when an inline value class is the return type, which breaks bee.fetched.

Also, when a result as inline value class is passed as parameter via Any?, one cannot return it back easily to a result. It is not boxed, the new Failure class is private. It is quite a headache to find workarounds.

Therefore migrated to own fork: https://github.com/bee-produced/kotlin-result.

https://jitpack.io/#bee-produced/kotlin-result/v1.1.22-SNAPSHOT

Same as 1.1.21 but without deprecation warnings.

adaurban added 3 commits June 13, 2025 14:32
However, encountered strange problems in bee.functional.test.
…sult 2.0.1

Type checks failed as new result type is an inline value class and no concrete type.

However, encountered strange problems in bee.functional.test.
@adaurban adaurban linked an issue Jun 16, 2025 that may be closed by this pull request
@adaurban adaurban merged commit eb470c1 into main Jun 16, 2025
2 checks passed
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 this pull request may close these issues.

Update kotlin-result

1 participant