qykings / protobuf-actionscript3

Automatically exported from code.google.com/p/protobuf-actionscript3
0 stars 0 forks source link

Misc bugs preventing use of generated wrappers #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. nested message handling in Message.as:
~~
var bytes:ByteArray = input.readRawBytes(size);
item.readFromDataOutput(bytes);
~~
be replaced by
~~
var bytes:ByteArray = input.readRawBytes(size);
bytes.position = 0;
item.readFromDataOutput(bytes);
~~

2. include a dummy variable in generated wrappers for every nested message
stored in arrays: if a class A doesn't have any variable or method about a
class B, it can't call getDefinitionByName(B.name) whithout getting the
exception:
//ReferenceError: Error #1065: Variable B is not defined.
//at global/flash.utils::getDefinitionByName()

3. add handling of Enums in readPrimitiveField(type:int):Object

4. all fields of generated wrappers must be public

Original issue reported on code.google.com by sorrydevil@gmail.com on 14 Mar 2009 at 7:01

GoogleCodeExporter commented 9 years ago
svn commit -m "fix for bug #1 of google code project protobuf-actionscript3.
Additional modification: CodedInputStream is not final anymore to allow the 
creation
of addition layers (chunking/auth) buy subclassing."
Sending        as3-lib/src/com/google/protobuf/CodedInputStream.as
Sending        as3-lib/src/com/google/protobuf/Message.as
Sending        compiler/as3/as3_message_field.cc
Transmitting file data ...
Committed revision 5.

Original comment by sorrydevil@gmail.com on 14 Mar 2009 at 7:43