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

LTP: XMLEncoder does not persist LineBorder properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Backports

        Description

        FULL PRODUCT VERSION :
        java version "1.7.0-internal"
        Java(TM) SE Runtime Environment (build 1.7.0-internal-sm162706_05_oct_2006_15_12-b00)
        Java HotSpot(TM) Client VM (build 1.6.0-rc-b100, mixed mode)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows XP Professional Service Pack 2

        A DESCRIPTION OF THE PROBLEM :
        The javax.swing.border.LineBorder with rounded corners could not be encoded/decoded successfully.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        1. Create new instance of LinBorder: new LineBorder( Color.RED, 2, true ).
        2. Encode and decode created instance.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        <?xml version="1.0" encoding="UTF-8"?>
        <java version="1.7.0-internal" class="java.beans.XMLDecoder">
         <object class="javax.swing.border.LineBorder">
          <object class="java.awt.Color">
           <int>255</int>
           <int>0</int>
           <int>0</int>
           <int>255</int>
          </object>
          <int>2</int>
          <boolean>true</boolean>
         </object>
        </java>
        ACTUAL -
        <?xml version="1.0" encoding="UTF-8"?>
        <java version="1.7.0-internal" class="java.beans.XMLDecoder">
         <object class="javax.swing.border.LineBorder">
          <object class="java.awt.Color">
           <int>255</int>
           <int>0</int>
           <int>0</int>
           <int>255</int>
          </object>
          <int>2</int>
         </object>
        </java>

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                malenkov Sergey Malenkov (Inactive)
                Reporter:
                malenkov Sergey Malenkov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: