Skip to content

fix(java): row encoders custom codec accepts class supertype#2297

Closed
stevenschlansker wants to merge 1 commit intoapache:mainfrom
stevenschlansker:custom-codec-super
Closed

fix(java): row encoders custom codec accepts class supertype#2297
stevenschlansker wants to merge 1 commit intoapache:mainfrom
stevenschlansker:custom-codec-super

Conversation

@stevenschlansker
Copy link
Copy Markdown
Contributor

@stevenschlansker stevenschlansker commented Jun 4, 2025

What does this PR do?

Encoders.registerCustomCodec now allows class token to be supertype of T
this matters for e.g. registerCustomCodec(Id.class, new CustomCodec<Id<T>, ...>); since Id.class is not Id<T> but Id is super of Id<T>

this matters for e.g. `registerCustomCodec(Id.class, new CustomCodec<Id<T>, ...>);`
since Id != Id<T> but Id is super of Id<T>
@stevenschlansker
Copy link
Copy Markdown
Contributor Author

Actually, I'm not sure this is the right fix. Sorry for the noise

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.

1 participant