On 5/25/16 4:58 PM, Mandy Chung wrote:
Have you considered fixing this method to return a unmodifiable set and make 
this spec in JDK 9?  It’s a small change.

I did think about changing the behavior here but I decided against it because of the small compatibility risk. The main issue here is that there is a JCK test (new in JCK 9) that attempts to add to the set and fails because it receives UnsupportedOperationException. I want to change the spec so that the test will allow UOE.

s'marks

Reply via email to