diff --git a/pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/LookupHelper.java b/pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/LookupHelper.java index 44a377dc..12006c7b 100644 --- a/pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/LookupHelper.java +++ b/pbj-core/pbj-compiler/src/main/java/com/hedera/pbj/compiler/impl/LookupHelper.java @@ -314,7 +314,9 @@ private void build(Iterable allSrcFiles) { // process imports final Set fileImports = protoFileImports.computeIfAbsent(fullQualifiedFile, key -> new HashSet<>()); for (var importStatement : parsedDoc.importStatement()) { - final String importedFileName = importStatement.strLit().getText().replaceAll("\"",""); + final String importedFileName = importStatement.strLit().getText() + .replaceAll("\"","") + .replaceAll("/", FileSystems.getDefault().getSeparator()); // ignore standard google protobuf imports as we do not need them if (importedFileName.startsWith("google/protobuf")) { continue;