- Fixed patches for portlint - Supressed debug message on RXTXPort:removeEventListener:Exit when not in debug mode - Added java bootstrap class - Updated java source/target directives which will be depreciated in future release, see http://openjdk.java.net/ +jeps/182, and regression tested functionality. PR: 216248 Submitted by: james@elstone.net Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D9508
31 lines
1.1 KiB
Java
31 lines
1.1 KiB
Java
--- src/gnu/io/Configure.java.orig 2007-11-18 22:32:41 UTC
|
|
+++ src/gnu/io/Configure.java
|
|
@@ -61,6 +61,7 @@ import java.awt.*;
|
|
import java.awt.event.*;
|
|
import java.io.*;
|
|
|
|
+
|
|
class Configure extends Frame
|
|
{
|
|
Checkbox cb[];
|
|
@@ -68,7 +69,9 @@ class Configure extends Frame
|
|
static final int PORT_SERIAL = 1;
|
|
static final int PORT_PARALLEL = 2;
|
|
int PortType = PORT_SERIAL;
|
|
-
|
|
+
|
|
+ private final static boolean debug = "true".equals( System.getProperty( "gnu.io.rxtx.DEBUG" ) );
|
|
+
|
|
private void saveSpecifiedPorts()
|
|
{
|
|
String filename;
|
|
@@ -212,7 +215,9 @@ class Configure extends Frame
|
|
}
|
|
public static void main (String[] args)
|
|
{
|
|
+ if (debug) System.out.println("Configure - Before New");
|
|
new Configure();
|
|
+ if (debug) System.out.println("Configure - After New");
|
|
}
|
|
String EnumMessage = "gnu.io.rxtx.properties has not been detected.\n\nThere is no consistant means of detecting ports on this operating System. It is necessary to indicate which ports are valid on this system before proper port enumeration can happen. Please check the ports that are valid on this system and select Save";
|
|
}
|