My guess is that you're somehow mixing new generated code with an older runtime library. That Internal.checkNotNull method was introduced earlier this year, so older versions of the runtime don't have it. I'm surprised that you got a NoSuchMethodError instead of a compile-time error, though.
On Sun, Dec 17, 2017 at 12:18 PM, <[email protected]> wrote: > message Word{ > int32 id = 1; > string t1 = 2; > string t2 = 3; > bytes s1 = 4; > repeated WordSample ws= 5; > > } > > message WordSample{ > int32 id_word = 1; > string t1 = 2; > string t2 = 3; > bytes s1 = 4; > } > > > var k=Word.newBuilder() > k.id=1 > k.t1="t1" > k.t2="t2" > k.addWs(WordSample.getDefaultInstance()) > k.addWs(WordSample.getDefaultInstance()) > k.addWs(WordSample.getDefaultInstance()) > // k.build() > > k.getWsBuilder(1).setT2("try to change") > > > // java.lang.NoSuchMethodError: > com.google.protobuf.Internal.checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; > > > I need to create a Message with a repeated Message within, the question is > that I need to set some fields at a diferent moments, thus I have to acces > the inner message and set the field. > But it simply launches the above exception, it really looks like a bug, > why would you ever have getBuilder properties with a setter for if you can't > set anything ????? > > latest protobuf in kotlin thanks in advance > > > > > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/protobuf. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
