imrahil / asx3m

Automatically exported from code.google.com/p/asx3m
0 stars 0 forks source link

Exception when trying to serialize an object with write-only field #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a class with write-only field
2. Serialize the class instance

What is the expected output? What do you see instead?

Stack trace is shown below

ReferenceError: Error #1077: Illegal read of write-only property derive on
com.degrafa.paint.SolidStroke.
    at
hr.binaria.asx3m.converters.reflection::ReflectionConverter/marshal()[C:\Dev\Fle
xBuilder3Workspace\asx3m\src\hr\binaria\asx3m\converters\reflection\ReflectionCo
nverter.as:86]
    at
hr.binaria.asx3m.core::TreeMarshaller/convert()[C:\Dev\FlexBuilder3Workspace\asx
3m\src\hr\binaria\asx3m\core\TreeMarshaller.as:52]
    at
hr.binaria.asx3m.core::TreeMarshaller/convertAnother()[C:\Dev\FlexBuilder3Worksp
ace\asx3m\src\hr\binaria\asx3m\core\TreeMarshaller.as:48]
    at
hr.binaria.asx3m.converters.reflection::ReflectionConverter/marshal()[C:\Dev\Fle
xBuilder3Workspace\asx3m\src\hr\binaria\asx3m\converters\reflection\ReflectionCo
nverter.as:75]
    at
hr.binaria.asx3m.core::TreeMarshaller/convert()[C:\Dev\FlexBuilder3Workspace\asx
3m\src\hr\binaria\asx3m\core\TreeMarshaller.as:52]
    at
hr.binaria.asx3m.core::TreeMarshaller/convertAnother()[C:\Dev\FlexBuilder3Worksp
ace\asx3m\src\hr\binaria\asx3m\core\TreeMarshaller.as:48]
    at
hr.binaria.asx3m.core::TreeMarshaller/start()[C:\Dev\FlexBuilder3Workspace\asx3m
\src\hr\binaria\asx3m\core\TreeMarshaller.as:78]
    at
hr.binaria.asx3m.core::TreeMarshallingStrategy/marshall()[C:\Dev\FlexBuilder3Wor
kspace\asx3m\src\hr\binaria\asx3m\core\TreeMarshallingStrategy.as:32]
    at
hr.binaria.asx3m::Asx3m/marshall()[C:\Dev\FlexBuilder3Workspace\asx3m\src\hr\bin
aria\asx3m\Asx3m.as:78]
    at
hr.binaria.asx3m::Asx3m/toXML()[C:\Dev\FlexBuilder3Workspace\asx3m\src\hr\binari
a\asx3m\Asx3m.as:87]
    at
hr.binaria.asx3m::Asx3mer/toXML()[C:\Dev\FlexBuilder3Workspace\asx3m\src\hr\bina
ria\asx3m\Asx3mer.as:43]

What version of the product are you using? On what operating system?
Flex SDK 3.2, Flex Builder under Windows XP

Original issue reported on code.google.com by Raju.Kan...@gmail.com on 17 May 2009 at 7:00