[hg] main-silver: Fix deadlock caused by DataView.setEditable(bo...

  • From: Jaroslav Havlin < >
  • To:
  • Subject: [hg] main-silver: Fix deadlock caused by DataView.setEditable(bo...
  • Date: Fri, 21 Jun 2013 04:47:20 -0700

changeset b9e745ab16d5 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/b9e745ab16d5
description:
        Fix deadlock caused by DataView.setEditable(boolean)

diffstat:

 db.dataview/src/org/netbeans/modules/db/dataview/output/DataView.java |  5 
++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (19 lines):

diff --git 
a/db.dataview/src/org/netbeans/modules/db/dataview/output/DataView.java 
b/db.dataview/src/org/netbeans/modules/db/dataview/output/DataView.java
--- a/db.dataview/src/org/netbeans/modules/db/dataview/output/DataView.java
+++ b/db.dataview/src/org/netbeans/modules/db/dataview/output/DataView.java
@@ -219,13 +219,12 @@
     }
 
     public synchronized void setEditable(final boolean editable) {
-        Mutex.EVENT.writeAccess(new Mutex.Action<Object>() {
+        Mutex.EVENT.writeAccess(new Runnable() {
             @Override
-            public Void run() {
+            public void run() {
                 for (DataViewPageContext pageContext : dataPage) {
                     pageContext.getModel().setEditable(editable);
                 }
-                return null;
             }
         });
     }

[hg] main-silver: Fix deadlock caused by DataView.setEditable(bo...

Jaroslav Havlin 06/21/2013

Project Features

About this Project

DB was started in November 2009, is owned by Antonin Nebuzelsky, and has 113 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close