I've never seen this error. It doesn't make much sense -- protobuf generated code should not contain any imports. Are you modifying the generated code in some way?
On Sun, Dec 19, 2010 at 11:47 PM, Xiao Ling <[email protected]> wrote: > Hi All, > > I have a generated protobuf java file which compiles alone under both > ECJ and Oracle jdk. When the file is compiled together with other Java > and Scala files in a Maven project, the compilation keeps outputing > some error messages as follows: > > "DocumentProtos.java:1092: error: reference to Builder is ambiguous; > it is both defined in object Document and imported subsequently by > import Mention._ > public Builder newBuilderForType() { return newBuilder(); } > ^ > DocumentProtos.java:1096: error: reference to Builder is ambiguous; > it is both defined in object Document and imported subsequently by > import Mention._ > public Builder toBuilder() { return newBuilder(this); }" > > Does anybody have any idea why so? > > Thanks, > -XL > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<protobuf%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
