Sure, I'll fix them if I find issues related to this. It's a bit tricky at least for me to understand all the subtle differences :-)

Thanks,
Raymond

----- Original Message ----- From: "Jim Marino" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, September 05, 2006 12:28 PM
Subject: Re: Inconsistent usage patterns of unknown parameterized types



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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to