[9] RFC JDK-8068373: (prefs) FileSystemPreferences writes \0 to XML storage, causing loss of all preferences

Brian Burkhalter brian.burkhalter at oracle.com
Thu Feb 12 19:00:23 UTC 2015


Paul,

I retract my statement below. My webrev.00 was this one:

http://cr.openjdk.java.net/~bpb/8068373/webrev.00/

with no API changes. It follows extant style but I do not like it that much. Please compare if you have time with the adding of the IAE to the spec.

Thanks,

Brian

On Feb 12, 2015, at 8:27 AM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:

> That was my original idea  \in fact (webrev.00, unpublished). It would however require a spec update to
> 
> http://docs.oracle.com/javase/8/docs/api/java/util/prefs/Preferences.html#put-java.lang.String-java.lang.String-
> 
> to allow for an IAE in this case. This would also be a backward-incompatible change for platforms which do allow storing such values.




More information about the core-libs-dev mailing list