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

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

    XMLWordPrintable

Details

    • b59
    • generic
    • generic

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: