Index: core/bootstrap/src/org/netbeans/TopSecurityManager.java =================================================================== RCS file: /shared/data/ccvs/repository/core/bootstrap/src/org/netbeans/TopSecurityManager.java,v retrieving revision 1.26 diff -u -r1.26 TopSecurityManager.java --- core/bootstrap/src/org/netbeans/TopSecurityManager.java 20 Oct 2006 13:35:34 -0000 1.26 +++ core/bootstrap/src/org/netbeans/TopSecurityManager.java 14 Sep 2007 09:22:36 -0000 @@ -36,6 +36,8 @@ import java.util.Iterator; import java.util.List; import java.util.Set; +import java.util.logging.Level; +import java.util.logging.Logger; /** NetBeans security manager implementation. * @author Ales Novak, Jesse Glick @@ -336,7 +338,13 @@ } } } - return; + if (perm instanceof java.net.SocketPermission) { + if(Thread.currentThread().getName().startsWith("AWT-EventQueue")) { + Logger.getLogger(TopSecurityManager.class.getName()).log( + Level.WARNING, "Network call on UI thread", new Exception()); + } + } + return; } public void checkPermission(Permission perm, Object context) {