From fd5ec2e3950652f749b2f6369bd39529ca600029 Mon Sep 17 00:00:00 2001 From: Svata Dedic Date: Sat, 17 Aug 2024 16:51:20 +0200 Subject: [PATCH] Accepted unchanged data is still recorded into the result state. --- .../modules/project/dependency/reload/Reloader.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ide/project.dependency/src/org/netbeans/modules/project/dependency/reload/Reloader.java b/ide/project.dependency/src/org/netbeans/modules/project/dependency/reload/Reloader.java index 20196e11e261..0b76128eed9a 100644 --- a/ide/project.dependency/src/org/netbeans/modules/project/dependency/reload/Reloader.java +++ b/ide/project.dependency/src/org/netbeans/modules/project/dependency/reload/Reloader.java @@ -556,6 +556,11 @@ public void cancel(CancellationException cancelled) { } private CompletableFuture loadStepDone(ProjectStateData state, LoadContextImpl fd, Throwable t) { + loadStepDone1(state, fd, t); + return processOne(); + } + + private void loadStepDone1(ProjectStateData state, LoadContextImpl fd, Throwable t) { // record the returned data for subsequent rounds: if (t != null) { fd.reloadError = t; @@ -571,7 +576,6 @@ private CompletableFuture loadStepDone(ProjectStateD LOG.log(Level.FINE, "{0} {1} loaded {2} with load-private data {3}", new Object[]{this, fd.impl, state, fd.contextData}); currentStage = null; currentStageContext = null; - return processOne(); } /** @@ -656,6 +660,7 @@ synchronized CompletableFuture processOne() { LOG.log(Level.FINE, "{0}: {1} rejected by {2}", new Object[]{this, d.loadedData, d.impl}); break; } + loadStepDone1(d.loadedData, d, null); } final LoadContextImpl fd = d; try {