> On May 25, 2016, at 5:11 PM, Stuart Marks <stuart.ma...@oracle.com> wrote: > > 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.
I would suggest to make this small incompatible spec change in JDK 9 since it’s a major release. This method was intended to filter out non-String keys in this Properties for iteration and it’s an oversight not to return an unmodifiable set. Mandy > 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