File: zsystem_init_exception.patch

package info (click to toggle)
rxtx 2.2pre2-11
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,764 kB
  • sloc: ansic: 14,347; sh: 10,742; java: 7,629; cpp: 2,717; makefile: 150
file content (19 lines) | stat: -rw-r--r-- 606 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: print exception if initialization fails
Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=472053
Author: Jan Niehusmann <jan@gondor.com>

Index: rxtx/src/gnu/io/RXTXPort.java
===================================================================
--- rxtx.orig/src/gnu/io/RXTXPort.java	2011-02-03 20:48:21.824924891 -0500
+++ rxtx/src/gnu/io/RXTXPort.java	2011-02-03 20:50:04.058464228 -0500
@@ -86,7 +86,9 @@
 	{
 		try {
 			z = new Zystem();
-		} catch ( Exception e ) {}
+		} catch ( Exception e ) {
+			throw new Error(e.toString());
+		}
 
 		if(debug ) 
 			z.reportln( "RXTXPort {}");