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

LTP: XMLEncoder does not persist LineBorder properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 7
    • 7
    • client-libs
    • x86
    • windows_xp

        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>

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: