You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2006/07/11 18:23:30 UTC
[jira] Resolved: (HARMONY-812) transient fields are serialized
[ http://issues.apache.org/jira/browse/HARMONY-812?page=all ]
Tim Ellison resolved HARMONY-812:
---------------------------------
Resolution: Fixed
Thanks for the additional test Alexey.
Test created in LUNI module at repo revision r420913.
Please check that the test was created as you expected.
> transient fields are serialized
> -------------------------------
>
> Key: HARMONY-812
> URL: http://issues.apache.org/jira/browse/HARMONY-812
> Project: Harmony
> Type: Bug
> Components: Classlib
> Environment: Windows XP professional
> Reporter: Anton Luht
> Assignee: Tim Ellison
> Priority: Minor
> Attachments: ObjectInputStreamTest.java
>
> Classlib + VM version 419914
> build: win_ia32_msvc_debug
> Fields that are marked as 'transient' are serialized though they shouldn't
> Code to reproduce:
> import java.io.*;
> public class Test {
> public static void main(String[] args) throws Throwable {
> ByteArrayOutputStream baos = new ByteArrayOutputStream();
> ObjectOutputStream oos = new ObjectOutputStream(baos);
> oos.writeObject(new Transient());
> oos.close();
> ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray()));
> Transient t = (Transient) ois.readObject();
> ois.close();
> System.out.println(t.trs == null ? "PASSED" : "FAILED");
> }
> }
> class Transient implements Serializable {
> transient String trs = "aaa";
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira