Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
format question
----------------------------------------------------------
option java_package = "com.ppsea.message.msg"; option
java_outer_classname = "ListMsgResponseProto"; import "msg.proto"; message
ListMsgResponse {
optional int32 page = 1;
optional int32 total_page = 2;
repeated Msg msg = 3;
optional string un_read_msg_num = 4;
}
Original comment by liuji...@gmail.com
on 2 Sep 2011 at 6:00
I'm sorry but I don't understand this bug report. protobuf-dt delegates to
protoc the generation of Java, C++ or Python code.
Original comment by alr...@google.com
on 2 Sep 2011 at 10:51
不好意思,我无法用英语表达准确的意思,我直接用中文描��
�吧!
我在意思是我在其中的一个proto文件中import另一个proto文件时�
��个文件无法生成java class.
如:
==========================================
option java_package = "com.ppsea.message.msg";
option java_outer_classname = "ListMsgResponseProto";
import "msg.proto";
message ListMsgResponse {
optional int32 page = 1;
optional int32 total_page = 2;
repeated Msg msg = 3;
optional string un_read_msg_num = 4;
}
这个proto文件“import msg.proto”用插件就无法生成java
class,直接使用protoc编译器是可以生成的,而且用F3也能找到�
��入的msg.proto文件,或者我去掉import引入msg.proto也可以生成jav
a class,不知道是什么原因?
谢谢!!
Original comment by liuji...@gmail.com
on 5 Sep 2011 at 1:38
I'm sorry, I don't read Chinese. Please attach an Eclipse project where I can
reproduce the problem.
Original comment by alr...@google.com
on 9 Sep 2011 at 5:13
Closing issue since there are no updates.
Original comment by alr...@google.com
on 12 Oct 2011 at 6:06
Original issue reported on code.google.com by
liuji...@gmail.com
on 2 Sep 2011 at 5:58