harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paulex Yang <paulex.y...@gmail.com>
Subject Re: [classlib][luni] Suspicious behavior of java.util.EnumSet
Date Mon, 21 Aug 2006 07:04:40 GMT
Spark Shen wrote:
> But, do you agree to following RI on this strange behavior? 
> Personally, I think throw an IllegalStateException here is more 
> appropriate.
The spec for Iterator.remove() says:

"Throws ||IllegalStateException - if the next method has not yet been 
called, or the remove method has already been called after the last call 
to the next method."

So IMHO, it doesn't follow spec to throw IllegalStateException here, if 
we think RI has bug here, the more careful solution is do nothing and 
> Best regards

Paulex Yang
China Software Development Lab

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

View raw message