Skip to content

Commit be0a12d

Browse files
committed
mutual dependent class not working #65
1 parent 3c12875 commit be0a12d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jjava/src/main/java/org/dflib/jjava/execution/CodeEvaluator.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,12 @@ protected Object evalSingle(String code) {
148148
throw new RuntimeException(e);
149149
}
150150

151-
if (!event.status().isDefined())
151+
// Undefined snippets are generally bad, unless we can still recover from them. E.g.,
152+
// "Unresolved dependencies" errors are recoverable when those dependencies are defined in the later
153+
// snippets.
154+
if (event.status() != Snippet.Status.RECOVERABLE_NOT_DEFINED && !event.status().isDefined()) {
152155
throw new CompilationException(event);
156+
}
153157
}
154158
}
155159

0 commit comments

Comments
 (0)