Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6319672

(spec) java.util.Properties.storeToXML throws ClassCastException on a compromised properties

XMLWordPrintable

    • b59
    • generic
    • generic

      A few methods in the Properties class, such as store and load, are specified to fail if they are called on a compromised properties. Specifically, they will throw ClassCastException on a Properties object that contains non-String key or value.

      Looking at the source, storeToXML throws ClassCastException on a compromised properties object which has a non-String key. This is not specified in the spec.

            sherman Xueming Shen
            mchung Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: