qykings / protobuf-actionscript3

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

import statements generated incorrectly for packages that are not top level #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have attached a proto file that can be used to recreate this problem. 
Just run protoc on it to create World.as and WorldObject.as.

World.as should contain the following line:
import myProtos.world.WorldObject;

Instead it contains this line:
import WorldObject;

Original issue reported on code.google.com by adamp...@gmail.com on 29 Dec 2009 at 11:00

Attachments:

GoogleCodeExporter commented 9 years ago
You actually need to specify the package as "java_package". In your case:

option java_package = "myProtos.world";

Original comment by sorrydevil@gmail.com on 5 Jan 2010 at 7:08