You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PBJ does not handle the package directive correctly when another message refers to a message defined in a file with a package directive.
The package directive, in protoc, is treated as a C++ namespace, rather than a Java package, and common prefixes are elided when matching between the current file and a search space. The PBJ compiler, however, treats it as a Java package and requires a full-text match. This causes MANY third-party proto files (some of which we may wish to use, such as validation plugins) to fail compilation for PBJ.
PBJ does not handle the
package
directive correctly when another message refers to a message defined in a file with apackage
directive.The package directive, in protoc, is treated as a
C++
namespace, rather than a Java package, and common prefixes are elided when matching between the current file and a search space. The PBJ compiler, however, treats it as a Java package and requires a full-text match. This causes MANY third-party proto files (some of which we may wish to use, such as validation plugins) to fail compilation for PBJ.Example
parent_item.proto file:
children/child_item.proto
The canonical
protoc
compiler handles these correctly and compiles as expected.PBJ fails with an error message similar to this:
The text was updated successfully, but these errors were encountered: