My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 35: serialization fails when member is private
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Jan 2011


 
Reported by cousinlo...@gmail.com, Jan 20, 2011
What steps will reproduce the problem?
1. in sample application (SampleApp) set 'name' field of Department to private and add getters and setters
2. serialization fails
Error encountered while processing the descriptor for type [class Department] (field name):
Annotation for referred field does not exist
	at com.googlecode.flexxb.annotation.contract::Constructor/addArgument()
	at com.googlecode.flexxb.annotation.contract::Constructor/parse()
	at com.googlecode.flexxb.xml.annotation::XmlClass/parse()
	at com.googlecode.flexxb.annotation.contract::BaseAnnotation()
	at com.googlecode.flexxb.xml.annotation::Annotation()
	at com.googlecode.flexxb.xml.annotation::XmlClass()
	at com.googlecode.flexxb.annotation::AnnotationFactory/getAnnotation()
	at com.googlecode.flexxb.annotation.parser::MetaParser/parseDescriptor()
	at DescriptorStore/xmlDescribeType()
	at DescriptorStore/putDescriptorInCache()
	at DescriptorStore/put()
	at DescriptorStore/getDefinition()
	at DescriptorStore/isCustomSerializable()
	at com.googlecode.flexxb.core::SerializationCore/serialize()
	at FlexXBCore/serialize()
	at com.googlecode.flexxb::FlexXBEngine/serialize()
	at SampleApp/serialize()[/Users/rbon/Documents/Adobe Flash Builder/SampleApp/src/SampleApp.mxml:38]
	at SampleApp/___SampleApp_Button1_click()[/Users/rbon/Documents/Adobe Flash Builder/SampleApp/src/SampleApp.mxml:85]


What is the expected output? What do you see instead?
output should be same as when member field is public. no output generated


What version of the product are you using? On what operating system?
FlexXB-2_0-09012011

Please provide any additional information below.


Jan 24, 2011
Project Member #1 alex.id....@gmail.com
Private variables are not serialized. FlexXb uses the describeType method to see the contents of an object and teh type descriptor does not provide information about protected or private variables/getter/setters/methods. It is a Flash thing. If you need to access a private var in your class you either make it public or implement the ISerializable interface
Status: Invalid

Powered by Google Project Hosting