We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0fd8452 + 1a8da28 commit 5150cf7Copy full SHA for 5150cf7
compiler/src/main/cpp/capnpc-java.c++
@@ -208,6 +208,14 @@ private:
208
package = kj::str(annotation.getValue().getText());
209
}
210
211
+
212
+ if (package.size() == 0) {
213
+ context.exitError(kj::str(node.getDisplayName(), ": no Java package name found. See java.capnp."));
214
+ }
215
+ if (className.size() == 0) {
216
+ context.exitError(kj::str(node.getDisplayName(), ": no Java outer classname found. See java.capnp."));
217
218
219
return kj::strTree(kj::mv(package), ".", kj::mv(className));
220
} else {
221
Schema parent = schemaLoader.get(node.getScopeId());
0 commit comments