On Sep 5, 2006, at 12:26 PM, Raymond Feng wrote:
Hi,
We have intensive usages of java generics in the code base
including SPI model classes and extensiblity interfaces. But I
noticed that there are some inconsistencies which mix the legacy
and parameterized types (either known type or unknown wildcard).
Assuming we have an interface or class MyType<T>, the following
method styles will produce different results as illustrated in the
sample test below.
Style 1: MyType getMyType(...); // Legacy, all the generic
information will not be honored
Style 2: MyType<?> getMyType(...); // unknown parameter type
Style 3 : MyType<String> getMyType(...); // know parameter type
Please read the following example to understand the differencies.
Do you want to go ahead and fix them?
Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]