diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index ba2048a..5c72b2b 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,5 +1,6 @@ ## 1.0-a6 +- #65 mutual dependent class not working - #68 CompilationException doesn't provide any information about the udnerlying problem - #69 Expose EvalException details diff --git a/jjava/src/main/java/org/dflib/jjava/execution/CodeEvaluator.java b/jjava/src/main/java/org/dflib/jjava/execution/CodeEvaluator.java index 2332233..ef0b3e0 100644 --- a/jjava/src/main/java/org/dflib/jjava/execution/CodeEvaluator.java +++ b/jjava/src/main/java/org/dflib/jjava/execution/CodeEvaluator.java @@ -148,8 +148,12 @@ protected Object evalSingle(String code) { throw new RuntimeException(e); } - if (!event.status().isDefined()) + // Undefined snippets are generally bad, unless we can still recover from them. E.g., + // "Unresolved dependencies" errors are recoverable when those dependencies are defined in the later + // snippets. + if (event.status() != Snippet.Status.RECOVERABLE_NOT_DEFINED && !event.status().isDefined()) { throw new CompilationException(event); + } } }