fix(wallet-api): remove core-wallet classpath collision#1654
fix(wallet-api): remove core-wallet classpath collision#1654szijpeter wants to merge 1 commit intowalt-id:mainfrom
Conversation
📝 WalkthroughWalkthroughThe PR removes the Changes
Possibly related issues
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
waltid-services/waltid-wallet-api/src/main/kotlin/id/walt/webwallet/utils/UuidSerializer.kt (1)
16-16: Consider making this temporary serializerinternal.This keeps the workaround module-local and avoids accidental use as a long-lived public API.
♻️ Suggested visibility tightening
- object UuidSerializer : KSerializer<Uuid> { + internal object UuidSerializer : KSerializer<Uuid> {🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@waltid-services/waltid-wallet-api/src/main/kotlin/id/walt/webwallet/utils/UuidSerializer.kt` at line 16, The UuidSerializer object is currently public; make it module-local by changing its visibility to internal (i.e., declare internal object UuidSerializer : KSerializer<Uuid>) so the temporary workaround isn't exposed as a public API; update any usages in the same module if necessary to ensure they still resolve.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In
`@waltid-services/waltid-wallet-api/src/main/kotlin/id/walt/webwallet/utils/UuidSerializer.kt`:
- Line 16: The UuidSerializer object is currently public; make it module-local
by changing its visibility to internal (i.e., declare internal object
UuidSerializer : KSerializer<Uuid>) so the temporary workaround isn't exposed as
a public API; update any usages in the same module if necessary to ensure they
still resolve.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: fb3f17a7-8a01-4dbb-88ef-edbe39d7eab2
📒 Files selected for processing (3)
waltid-services/waltid-wallet-api/build.gradle.ktswaltid-services/waltid-wallet-api/src/main/kotlin/id/walt/webwallet/utils/UuidSerializer.ktwaltid-services/waltid-wallet-api/src/main/kotlin/id/walt/webwallet/web/controllers/auth/AuthController.kt
💤 Files with no reviewable changes (1)
- waltid-services/waltid-wallet-api/build.gradle.kts



Summary
waltid-core-walletfrom wallet-api runtime dependenciesUuidSerializerin wallet-apiWhy
wallet-apiandwaltid-core-walletboth publish classes underid.walt.webwallet.usecase.exchange.*with different constructor signatures. At runtime this can load the wrong class and crashWalletServiceManagerinit (NoSuchMethodError->NoClassDefFoundError), breaking registration flow.Verification
./gradlew :waltid-services:waltid-wallet-api:compileKotlin./gradlew :waltid-services:waltid-wallet-api:dependencies --configuration runtimeClasspath | rg "waltid-core-wallet"(no matches)Context
Isolated hotfix for #1608
Summary by CodeRabbit