In PolymorphicGenericClassTests, member name in class Car is considered a generic type at registration time #412
Labels
Content-Length: 213558 | pFad | http://github.com/objectify/objectify/issues/412
41Fetched URL: http://github.com/objectify/objectify/issues/412
Alternative Proxies:
Hello team, I was looking at the Objectify unit tests:
When class Car in PolymorphicGenericClassTests.java is registered,
it is already known at registration time that the generic type parameter T from superclass Vehicle is really a String. This information is readily accessible via Car.class.getGenericSuperclass().
However, the registration process does not consider this.
Instead, it seems Objectify must resolve at runtime how the name property is to be stored in Datastore.
I was wondering whether it is a worhwhile optimization to adapt the registration process.
Thanks.
The text was updated successfully, but these errors were encountered: