Revision: 4856
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4856&view=rev
Author:   bphinz
Date:     2012-02-16 12:31:38 +0000 (Thu, 16 Feb 2012)
Log Message:
-----------
make sure we actually throw caught execptions in java viewer

Modified Paths:
--------------
    trunk/java/com/tigervnc/network/SocketDescriptor.java
    trunk/java/com/tigervnc/network/TcpListener.java
    trunk/java/com/tigervnc/rfb/CSecurityTLS.java

Modified: trunk/java/com/tigervnc/network/SocketDescriptor.java
===================================================================
--- trunk/java/com/tigervnc/network/SocketDescriptor.java       2012-02-14 
19:56:17 UTC (rev 4855)
+++ trunk/java/com/tigervnc/network/SocketDescriptor.java       2012-02-16 
12:31:38 UTC (rev 4856)
@@ -185,7 +185,7 @@
       channel.configureBlocking(false);
       selector = Selector.open();
     } catch (java.io.IOException e) {
-      System.out.println(e.toString());
+      throw new Exception(e.toString());
     }
     try {
       channel.register(selector, SelectionKey.OP_READ | SelectionKey.OP_WRITE 
);

Modified: trunk/java/com/tigervnc/network/TcpListener.java
===================================================================
--- trunk/java/com/tigervnc/network/TcpListener.java    2012-02-14 19:56:17 UTC 
(rev 4855)
+++ trunk/java/com/tigervnc/network/TcpListener.java    2012-02-16 12:31:38 UTC 
(rev 4856)
@@ -116,8 +116,7 @@
           return null;
       }
     } catch (IOException e) {
-      //throw SocketException("unable to accept new connection", errorNumber);
-      System.out.println(e.toString());
+      throw new SocketException("unable to accept new connection: 
"+e.toString());
     }
 
     // Disable Nagle's algorithm, to reduce latency

Modified: trunk/java/com/tigervnc/rfb/CSecurityTLS.java
===================================================================
--- trunk/java/com/tigervnc/rfb/CSecurityTLS.java       2012-02-14 19:56:17 UTC 
(rev 4855)
+++ trunk/java/com/tigervnc/rfb/CSecurityTLS.java       2012-02-16 12:31:38 UTC 
(rev 4856)
@@ -128,7 +128,7 @@
     try {
       manager = new SSLEngineManager(engine, is, os);
     } catch(java.lang.Exception e) {
-      System.out.println(e.toString());
+      throw new Exception(e.toString());
     }
 
     try {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to