-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0, 5.0, 6
-
b80
-
generic, x86
-
generic, windows_xp
-
Verified
JCK : JCK6.0 b20
J2SE : FAIL - *SINCE* mustang b76
Platform[s] : FAIL - seems to be all
switch/Mode : FAIL - default
Regression : Since tiger
This test fails because b76 unable to run the following code (part of the test api/java_beans/XMLDecoder/index.html#read[XMLDecoder0034] ):
import java.beans.*;
import java.io.*;
import java.awt.*;
public class Bean{
public static void main(String args[]){
XMLEncoder xmlEnc = new XMLEncoder(new ByteArrayOutputStream());
xmlEnc.writeObject(new java.awt.Insets(1, 2, 3, 4));
}
}
then this code is run it displays at console the following message *without any exception*:
java.lang.NoSuchMethodException: java.awt.Insets.getTop()
Continuing ...
java.lang.NoSuchMethodException: java.awt.Insets.getLeft()
Continuing ...
java.lang.NoSuchMethodException: java.awt.Insets.getBottom()
Continuing ...
java.lang.NoSuchMethodException: java.awt.Insets.getRight()
Continuing ...
java.lang.IllegalArgumentException
Continuing ...
java.lang.Exception: XMLEncoder: discarding statement XMLEncoder.writeObject(Ins
ets);
Continuing ...
and then everything goes wrong for api/java_beans/XMLDecoder/index.html#read[XMLDecoder0034]
J2SE : FAIL - *SINCE* mustang b76
Platform[s] : FAIL - seems to be all
switch/Mode : FAIL - default
Regression : Since tiger
This test fails because b76 unable to run the following code (part of the test api/java_beans/XMLDecoder/index.html#read[XMLDecoder0034] ):
import java.beans.*;
import java.io.*;
import java.awt.*;
public class Bean{
public static void main(String args[]){
XMLEncoder xmlEnc = new XMLEncoder(new ByteArrayOutputStream());
xmlEnc.writeObject(new java.awt.Insets(1, 2, 3, 4));
}
}
then this code is run it displays at console the following message *without any exception*:
java.lang.NoSuchMethodException: java.awt.Insets.getTop()
Continuing ...
java.lang.NoSuchMethodException: java.awt.Insets.getLeft()
Continuing ...
java.lang.NoSuchMethodException: java.awt.Insets.getBottom()
Continuing ...
java.lang.NoSuchMethodException: java.awt.Insets.getRight()
Continuing ...
java.lang.IllegalArgumentException
Continuing ...
java.lang.Exception: XMLEncoder: discarding statement XMLEncoder.writeObject(Ins
ets);
Continuing ...
and then everything goes wrong for api/java_beans/XMLDecoder/index.html#read[XMLDecoder0034]
- duplicates
-
JDK-6406290 REGRESSION: XML Persistance Delegate for Insets broken in Mustang B77
- Closed
-
JDK-5082816 LTP: MatteBorder can't be serialized to XML.
- Closed
- relates to
-
JDK-4741757 LTP: XMLEncoder ignores persistence delegates when used with java web start
- Resolved
-
JDK-6405175 LTP: XMLEncoder could not write BoxLayout and OverlayLayout (fails since mustang-b76)
- Resolved
-
JDK-6582164 JavaBeans tests should be open source
- Resolved