You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by jt...@apache.org on 2020/12/26 14:40:10 UTC

[netbeans-html4j] 15/25: Process pending Java callback first

This is an automated email from the ASF dual-hosted git repository.

jtulach pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-html4j.git

commit 372b448aa279480f83cea5af18564eec1ceb2d4e
Author: Jaroslav Tulach <ja...@apidesign.org>
AuthorDate: Wed Dec 23 06:53:19 2020 +0100

    Process pending Java callback first
---
 .../src/main/java/org/netbeans/html/presenters/spi/Generic.java   | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/generic/src/main/java/org/netbeans/html/presenters/spi/Generic.java b/generic/src/main/java/org/netbeans/html/presenters/spi/Generic.java
index e452569..83e5398 100644
--- a/generic/src/main/java/org/netbeans/html/presenters/spi/Generic.java
+++ b/generic/src/main/java/org/netbeans/html/presenters/spi/Generic.java
@@ -758,6 +758,14 @@ abstract class Generic implements Fn.Presenter, Fn.KeepAlive, Flushable {
                 log(Level.FINE, "Flushing {0}", fn);
             }
 
+            {
+                Item c = topMostCall();
+                if (c != null && c.method != null) {
+                    c.inJava();
+                    lock().notifyAll();
+                }
+            }
+
             Item myCall;
             boolean load;
             final Item top = topMostCall();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists