walker1011 / pb4php

Automatically exported from code.google.com/p/pb4php
0 stars 0 forks source link

Classes must defined in order or else Protofile type XXXX unknown is thrown #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If I define two classes in the proto file like so:

message TestClass {
   optional BlahClass blah = 1;
}

message BlahClass {
   optional string text = 1;
}

It will throw the error "Protofile type BlahClass unknown!". I would expect
it to be able to tell BlahClass is defined later in the proto file.

Another example:
message TestClass {
   repeated TestClass test = 1;
}

This also throws the error "Protofile type TestClass unknown!"

Original issue reported on code.google.com by mrst...@gmail.com on 13 Mar 2010 at 12:03