RFR(xs): 8059361: Properties.stringPropertyNames() returns a set inconsistent with the assertions from the spec

Stuart Marks stuart.marks at oracle.com
Thu May 26 00:11:11 UTC 2016


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



More information about the core-libs-dev mailing list