Skip to content

Handle non-anonymous enum subclasses in TypeHandlerRegistry#3665

Open
kobewl wants to merge 1 commit intomybatis:masterfrom
kobewl:codex/fix-kotlin-enum-typehandler
Open

Handle non-anonymous enum subclasses in TypeHandlerRegistry#3665
kobewl wants to merge 1 commit intomybatis:masterfrom
kobewl:codex/fix-kotlin-enum-typehandler

Conversation

@kobewl
Copy link
Copy Markdown

@kobewl kobewl commented Apr 2, 2026

Summary

  • treat enum subclasses by their enum superclass when resolving type handlers
  • cover the Kotlin-like runtime shape where the subclass is not anonymous
  • add a regression test using Byte Buddy to exercise the non-anonymous enum subclass path

Testing

  • JAVA_HOME=C:\Users\wangliang\.jdks\ms-21.0.8 .\mvnw.cmd -Dtest=TypeHandlerRegistryTest test

Fixes #3658

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.

Bug Report: Kotlin anonymous enum constants fail to be recognized in TypeHandlerRegistry

1 participant