Skip to content

Commit d56e791

Browse files
committed
JShellWrapper removed remaining part if the code doesn't compile
1 parent 64f8ed1 commit d56e791

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

JShellWrapper/src/main/java/JShellWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private EvalResult eval(JShell shell, String code, AtomicBoolean hasStopped) {
6262
while(!code.isEmpty()) {
6363
var completion = shell.sourceCodeAnalysis().analyzeCompletion(clean(code));
6464
if(!completion.completeness().isComplete()) {
65-
abortion = new JShellEvalAbortion(code, completion.remaining(), new JShellEvalAbortionCause.SyntaxErrorAbortionCause());
65+
abortion = new JShellEvalAbortion(code, "", new JShellEvalAbortionCause.SyntaxErrorAbortionCause());
6666
break;
6767
}
6868
List<SnippetEvent> evalEvents = shell.eval(completion.source());

0 commit comments

Comments
 (0)