Package: librxtx-java
Version: 2.1.7r2-3
Severity: wishlist
In the static initializer of gnu.io.RXTXPort, an exception when
initializing the static variable 'z' is silently discarded:
try {
z = new Zystem();
} catch ( Exception e ) {};
This leads to NullPointerExceptions later, which are difficult
to debug as the original exception is lost.
I did change the code to
try {
z = new Zystem();
} catch ( Exception e ) {
throw new Error(e.toString());
};
for debugging. Probably a more specific exception would be more
appropriate, but the point is that leaving z undefined without reporting
an error makes debugging unnecessarily difficult.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.25-rc6-smapi-x61s-00063-g681fc79 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages librxtx-java depends on:
ii gij [java-virtual-machine] 4:4.3-2 The GNU Java bytecode interpreter
ii gij-4.1 [java-virtual-machine 4.1.2-19 The GNU Java bytecode interpreter
ii gij-4.2 [java-virtual-machine 4.2.3-1 The GNU Java bytecode interpreter
ii gij-4.3 [java-virtual-machine 4.3.0-1 The GNU Java bytecode interpreter
ii java-gcj-compat [java-virtual 1.0.77-5 Java runtime environment using GIJ
ii java-gcj-compat-headless [jav 1.0.77-5 Java runtime environment using GIJ
ii libc6 2.7-9 GNU C Library: Shared libraries
ii sun-java6-jre [java-virtual-m 6-04-2 Sun Java(TM) Runtime Environment (
librxtx-java recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]