https://glazedlists.dev.java.net/issues/show_bug.cgi?id=402User jplemieux changed the following:
What |Old value |New value
================================================================================
Status|NEW |STARTED
--------------------------------------------------------------------------------
------- Additional comments from
jplemieux@... Sat Aug 30 10:43:56 +0000 2008 -------
I've ported over Jesse's TypeResolver from Google's Guice into the Glazed Lists
codebase. Specifically, these classes were added to
ca.odell.glazedlists.impl.java15:
- TypeResolver
- TypeLiteral
- Types
- MoreTypes
We place those classes in the .java15 package so that they are stripped from the
1.4 GL build by our build system.
We then hide these classes behind a GL interface:
ca.odell.glazedlists.util.reflect.ReturnTypeResolver
so that we can provide a reasonable implementation of this interface for JDK 1.4
and JDK 1.5. The Google TypeResolver class backs the JDK 1.5+ solution. Generics
didn't exist in JDK 1.4, so we can continue to return the result from
java.lang.Method.getReturnType() for the 1.4 implementation.
The pattern of selecting an implementation of the ReturnTypeResolver interface
depending on the version of java being used by a customer is essentially the
same for our Lock implementation.
---------------------------------------------------------------------
To unsubscribe, e-mail:
issues-unsubscribe@...
For additional commands, e-mail:
issues-help@...