harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Spark Shen <smallsmallor...@gmail.com>
Subject Re: [classlib] Sun compiler change?
Date Mon, 28 Aug 2006 13:50:41 GMT
Krzysztof Sobolewski 写道:
> Spark Shen wrote:
>
>   
>> Did you (refer to thread [app] ant with ecj) put
>>
>> Eclipse compiler JAR on Ant's
>> execution classpath to execute the javac task.
>>
>> If so, may be that's why It always gives you "unchecked cast" warning,
>> no errors.
>>     
>
> Well, I created a new EnumSet class in completly unrelated environment... So
> it is perfectly possible that there's a classpath conflict somewhere. I
> can't verify that because don't have the Harmony build here :)
>
> BTW: another experiment revealed that
> EnumSet<? extends Enum<E>> set = (EnumSet<? extends Enum<E>>)collection;
> compiles without warnings. No matter how much I think I understand generics,
> there's always something that surprises me ;)
>   
HaHa,  agree!!! :-)     
And thank you for your information.

Best regards
> -KS
>
>   


-- 
Spark Shen
China Software Development Lab, IBM


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message