Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeHandler cannot support super classes or interfaces. #604

Closed
gaohanghbut opened this issue Mar 14, 2016 · 1 comment
Closed

TypeHandler cannot support super classes or interfaces. #604

gaohanghbut opened this issue Mar 14, 2016 · 1 comment

Comments

@gaohanghbut
Copy link

look the code UnknownTypeHandler.resolveTypeHandler.
If a TypeHandler in the TypeHandlerRegistry is mapped by an interface class, the TypeHandlerRegistry.getTypeHandler cannot return the TypeHandler because of the giving type is parameter.getClass,so I think it's useful if TypeHandlerRegistry can return the TypeHandler mapped by interface(if only implemented one) or super classe

@harawata
Copy link
Member

harawata commented May 9, 2016

It does not seem to be a good idea because it could cause unintentional registration.
As in my comment on #607 , please use @MappedTypes to specify multiple classes.

Anyway, thank you for your idea! =)

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

No branches or pull requests

2 participants