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

Improve settings.xml parser

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 9
    • None
    • deploy
    • b38

    Backports

      Description

        Adding new properties to Advanced tab of JCP (settings.xml) sometimes results in strange bugs appear.
        For example using the following fragment in settings.xml results in ClassCastException on Windows platform in com.sun.deploy.panel.XMLDocumentHandler but works fine on Mac
                
                <platform text="mac os x">
                    <label text="deployment.misc.label">
                        <checkbox propertyName="deployment.system.tray.icon" checked="true" />
                        <permission text="admin" ifLessThanJDK8="true">
                            <checkbox propertyName="java.quick.starter" checked="false" />
                        </permission>
                        <checkbox propertyName="install.disable.sponsor.offers" checked="false"/>
                    </label>
                </platform>

        while the following one (the checbox "install.disable.sponsor.offers" just moved up) - works fine on Windows as well.
                <platform text="mac os x">
                    <label text="deployment.misc.label">
                        <checkbox propertyName="deployment.system.tray.icon" checked="true" />
                         <checkbox propertyName="install.disable.sponsor.offers" checked="false"/>
                        <permission text="admin" ifLessThanJDK8="true">
                            <checkbox propertyName="java.quick.starter" checked="false" />
                        </permission>
                    </label>
                </platform>


        Attachments

          Issue Links

            Activity

              People

                dtitov Daniil Titov (Inactive)
                dtitov Daniil Titov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: