qykings / protoc-gen-as3

Automatically exported from code.google.com/p/protoc-gen-as3
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

com.netease.protobuf.fieldDescriptors cannot be found #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I'm not reporting a bug issue here. I'm just curious about two compilation 
warnings reported by Flash Builder 4.6. I get those warnings on the as3 classes 
I generated through protoc-gen-as3. However my Flash Builder project compiles & 
runs perfectly fine (serialization & deserialization works).

Here are the two warnings (see attached RequestHeader.as file):
* first one is on the following line:
        import com.netease.protobuf.fieldDescriptors.*;
  it says "the import fieldDescriptors could not be found"
* second one is on the following line:
        public static const REQUESTID:FieldDescriptor$TYPE_INT32 = new FieldDescriptor$TYPE_INT32
  it says "type was not found or was not a compile-time constant: FieldDescriptor$TYPE_INT32"

My Question:
com.netease.protobuf.fieldDescriptors package doesn't exist inside 
protobuf.swc. Could you please explain to me what are those both warnings ? Are 
they perfectly normals ?

What steps will reproduce the problem?
1. generate as3 classes from the attached sample.proto file
2. Create a new Flash Builder project (AIR project in my case)
3. Add the as3 classes generated from sample.proto to the newly created Flash 
Builder project
4. Add the protoc-gen-as3 library (protobuf.swc) to the Referenced Libraries of 
the Flash Builder project

What version of the product are you using? On what operating system?
protoc-gen-as3 3.1.0.0-rc9
Flash Builder 4.6
Windows Vista Integral Edition SP2 x64

Best Regards,
--Seb

Original issue reported on code.google.com by seb.tr...@gmail.com on 7 Mar 2012 at 10:39

Attachments:

GoogleCodeExporter commented 9 years ago
There is com.netease.protobuf.fieldDescriptors in protobuf.swc. You see the 
warning because of Flash Builder's bug.

Original comment by pop.atry@gmail.com on 7 Mar 2012 at 2:54

GoogleCodeExporter commented 9 years ago
Fair enough. Thanks for the answer.

I should have guessed that since I saw the fieldDescriptors package is 
definitely inside the protoc-gen-as3 sources.  
I'm still curious about this Flash builder bug but I don't want to abuse of 
your time. Do you please know which exact Flash Builder bug is implied here ? 
Further more do you have the Adobe JIRA issue key related to this bug ?

Original comment by seb.tr...@gmail.com on 7 Mar 2012 at 3:10

GoogleCodeExporter commented 9 years ago
There is com.netease.protobuf.fieldDescriptors package, but Flash Builder say 
the package doesn't exist. That's the bug. You may submit a bug report in Adobe 
JIRA if there isn't one.

BTW: FlashDevelop or Flex SDK command line tool(mxmlc, compc) does not print 
this warning.

Original comment by pop.atry@gmail.com on 8 Mar 2012 at 1:43

GoogleCodeExporter commented 9 years ago
Thanks. I guess the '$' character in the class name is the root cause of this 
Flash Builder bug.

Original comment by seb.tr...@gmail.com on 8 Mar 2012 at 9:03