You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Roman S. Bushmanov (JIRA)" <ji...@apache.org> on 2007/06/15 14:08:31 UTC
[jira] Created: (HARMONY-4187) [classlib] Values of
serialVersionUID differ for Harmony and RI
[classlib] Values of serialVersionUID differ for Harmony and RI
---------------------------------------------------------------
Key: HARMONY-4187
URL: https://issues.apache.org/jira/browse/HARMONY-4187
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Roman S. Bushmanov
serialVersionUID value for Harmony's javax.swing.JComponent differs from the value defined by RI.
As a result object serialized by RI can not be desirialized by Harmony and vice versa.
The following testcase produces '6308178999232194655' for Harmony and '7917968344860800289' for RI.
------------------------- Test.java -------------------------------------------
import java.io.ObjectStreamClass;
import javax.swing.JComponent;
public class Test {
public static void main(String[] args) {
System.err.println(ObjectStreamClass.lookup(JComponent.class).getSerialVersionUID());
}
}
-----------------------------------------------------------------------------------
Affected test:
functional/org/apache/harmony/test/func/api/java/io/ObjectOutputStream/writeObjectReadObject0009/writeObjectReadObject0009.xml
(see HARMONY-3528)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-4187) [buildtest][func][swing] Values of
serialVersionUID differ for Harmony and RI
Posted by "Mikhail Markov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mikhail Markov updated HARMONY-4187:
------------------------------------
Component/s: (was: Classlib)
build - test - ci
Summary: [buildtest][func][swing] Values of serialVersionUID differ for Harmony and RI (was: [testing][swing] Values of serialVersionUID differ for Harmony and RI)
> [buildtest][func][swing] Values of serialVersionUID differ for Harmony and RI
> -----------------------------------------------------------------------------
>
> Key: HARMONY-4187
> URL: https://issues.apache.org/jira/browse/HARMONY-4187
> Project: Harmony
> Issue Type: Bug
> Components: build - test - ci
> Reporter: Roman S. Bushmanov
>
> serialVersionUID value for Harmony's javax.swing.JComponent differs from the value defined by RI.
> As a result object serialized by RI can not be desirialized by Harmony and vice versa.
> The following testcase produces '6308178999232194655' for Harmony and '7917968344860800289' for RI.
> ------------------------- Test.java -------------------------------------------
> import java.io.ObjectStreamClass;
> import javax.swing.JComponent;
> public class Test {
> public static void main(String[] args) {
> System.err.println(ObjectStreamClass.lookup(JComponent.class).getSerialVersionUID());
> }
> }
> -----------------------------------------------------------------------------------
> Affected test:
> functional/org/apache/harmony/test/func/api/java/io/ObjectOutputStream/writeObjectReadObject0009/writeObjectReadObject0009.xml
> (see HARMONY-3528)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-4187) [testing][swing] Values of
serialVersionUID differ for Harmony and RI
Posted by "Vladimir Beliaev (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554762 ]
Vladimir Beliaev commented on HARMONY-4187:
-------------------------------------------
The better way to paint this JIRA is:
1. name it as [buildtest][func]
2. change its component to build-test-ci.
Could someone implement this please?
> [testing][swing] Values of serialVersionUID differ for Harmony and RI
> ---------------------------------------------------------------------
>
> Key: HARMONY-4187
> URL: https://issues.apache.org/jira/browse/HARMONY-4187
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Roman S. Bushmanov
>
> serialVersionUID value for Harmony's javax.swing.JComponent differs from the value defined by RI.
> As a result object serialized by RI can not be desirialized by Harmony and vice versa.
> The following testcase produces '6308178999232194655' for Harmony and '7917968344860800289' for RI.
> ------------------------- Test.java -------------------------------------------
> import java.io.ObjectStreamClass;
> import javax.swing.JComponent;
> public class Test {
> public static void main(String[] args) {
> System.err.println(ObjectStreamClass.lookup(JComponent.class).getSerialVersionUID());
> }
> }
> -----------------------------------------------------------------------------------
> Affected test:
> functional/org/apache/harmony/test/func/api/java/io/ObjectOutputStream/writeObjectReadObject0009/writeObjectReadObject0009.xml
> (see HARMONY-3528)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-4187) [testing][swing] Values of
serialVersionUID differ for Harmony and RI
Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov updated HARMONY-4187:
-------------------------------------
Summary: [testing][swing] Values of serialVersionUID differ for Harmony and RI (was: [classlib][swing] Values of serialVersionUID differ for Harmony and RI)
Summary updated, since this is a bug in test I've replaced "[classlib]" tag with "[testing]" tag.
> [testing][swing] Values of serialVersionUID differ for Harmony and RI
> ---------------------------------------------------------------------
>
> Key: HARMONY-4187
> URL: https://issues.apache.org/jira/browse/HARMONY-4187
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Roman S. Bushmanov
>
> serialVersionUID value for Harmony's javax.swing.JComponent differs from the value defined by RI.
> As a result object serialized by RI can not be desirialized by Harmony and vice versa.
> The following testcase produces '6308178999232194655' for Harmony and '7917968344860800289' for RI.
> ------------------------- Test.java -------------------------------------------
> import java.io.ObjectStreamClass;
> import javax.swing.JComponent;
> public class Test {
> public static void main(String[] args) {
> System.err.println(ObjectStreamClass.lookup(JComponent.class).getSerialVersionUID());
> }
> }
> -----------------------------------------------------------------------------------
> Affected test:
> functional/org/apache/harmony/test/func/api/java/io/ObjectOutputStream/writeObjectReadObject0009/writeObjectReadObject0009.xml
> (see HARMONY-3528)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-4187) [classlib] Values of
serialVersionUID differ for Harmony and RI
Posted by "Dmitry Irlyanov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505290 ]
Dmitry Irlyanov commented on HARMONY-4187:
------------------------------------------
JButton, JComponent and all the swing classes is a bad example for ObjectOutputStream testing because though Swing classes are Serializable, Swing is not supposed to be serialization-compatible not only between implementations, but even between different versions of the same implementation. (http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JComponent.html)
Also they do not have "Serialized form" link in the API specification, and are not listed at the "Serialized form" page (http://java.sun.com/j2se/1.5.0/docs/api/serialized-form.html)
Also, Swing classes do not have serialVersionUID value specified in the API specification
Thanks to Zakharov Vasily for explanations in mailing list (haven't direct link yet :)
I think the functional test should be rewritten or added to exclude list
> [classlib] Values of serialVersionUID differ for Harmony and RI
> ---------------------------------------------------------------
>
> Key: HARMONY-4187
> URL: https://issues.apache.org/jira/browse/HARMONY-4187
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Roman S. Bushmanov
>
> serialVersionUID value for Harmony's javax.swing.JComponent differs from the value defined by RI.
> As a result object serialized by RI can not be desirialized by Harmony and vice versa.
> The following testcase produces '6308178999232194655' for Harmony and '7917968344860800289' for RI.
> ------------------------- Test.java -------------------------------------------
> import java.io.ObjectStreamClass;
> import javax.swing.JComponent;
> public class Test {
> public static void main(String[] args) {
> System.err.println(ObjectStreamClass.lookup(JComponent.class).getSerialVersionUID());
> }
> }
> -----------------------------------------------------------------------------------
> Affected test:
> functional/org/apache/harmony/test/func/api/java/io/ObjectOutputStream/writeObjectReadObject0009/writeObjectReadObject0009.xml
> (see HARMONY-3528)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-4187) [classlib][swing] Values of
serialVersionUID differ for Harmony and RI
Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tony Wu updated HARMONY-4187:
-----------------------------
Summary: [classlib][swing] Values of serialVersionUID differ for Harmony and RI (was: [classlib] Values of serialVersionUID differ for Harmony and RI)
> [classlib][swing] Values of serialVersionUID differ for Harmony and RI
> ----------------------------------------------------------------------
>
> Key: HARMONY-4187
> URL: https://issues.apache.org/jira/browse/HARMONY-4187
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Roman S. Bushmanov
>
> serialVersionUID value for Harmony's javax.swing.JComponent differs from the value defined by RI.
> As a result object serialized by RI can not be desirialized by Harmony and vice versa.
> The following testcase produces '6308178999232194655' for Harmony and '7917968344860800289' for RI.
> ------------------------- Test.java -------------------------------------------
> import java.io.ObjectStreamClass;
> import javax.swing.JComponent;
> public class Test {
> public static void main(String[] args) {
> System.err.println(ObjectStreamClass.lookup(JComponent.class).getSerialVersionUID());
> }
> }
> -----------------------------------------------------------------------------------
> Affected test:
> functional/org/apache/harmony/test/func/api/java/io/ObjectOutputStream/writeObjectReadObject0009/writeObjectReadObject0009.xml
> (see HARMONY-3528)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-4187) [classlib] Values of
serialVersionUID differ for Harmony and RI
Posted by "Dmitry Irlyanov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505205 ]
Dmitry Irlyanov commented on HARMONY-4187:
------------------------------------------
I'll look into this issue
> [classlib] Values of serialVersionUID differ for Harmony and RI
> ---------------------------------------------------------------
>
> Key: HARMONY-4187
> URL: https://issues.apache.org/jira/browse/HARMONY-4187
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Roman S. Bushmanov
>
> serialVersionUID value for Harmony's javax.swing.JComponent differs from the value defined by RI.
> As a result object serialized by RI can not be desirialized by Harmony and vice versa.
> The following testcase produces '6308178999232194655' for Harmony and '7917968344860800289' for RI.
> ------------------------- Test.java -------------------------------------------
> import java.io.ObjectStreamClass;
> import javax.swing.JComponent;
> public class Test {
> public static void main(String[] args) {
> System.err.println(ObjectStreamClass.lookup(JComponent.class).getSerialVersionUID());
> }
> }
> -----------------------------------------------------------------------------------
> Affected test:
> functional/org/apache/harmony/test/func/api/java/io/ObjectOutputStream/writeObjectReadObject0009/writeObjectReadObject0009.xml
> (see HARMONY-3528)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.