Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

For issue #45 (Support for parameterized types) #57

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

gianm
Copy link

@gianm gianm commented Apr 20, 2012

This patch lets Jerkson work with parameterized case classes by extracting type parameters using javaType.containedType, stashing them in a Map, and passing them through to typeRef2JavaType. In turn, typeRef2JavaType will return the stashed JavaTypes if it encounters one of them instead of trying to load classes using a generic name (which leads to a ClassNotFoundException). The patch series also includes a couple of test cases.

There might be a nicer way to accomplish the same thing but I am not aware of one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant