From owner-freebsd-java Wed Mar 27 21:15:28 2002 Delivered-To: freebsd-java@freebsd.org Received: from web20405.mail.yahoo.com (web20405.mail.yahoo.com [216.136.226.124]) by hub.freebsd.org (Postfix) with SMTP id 19C2337B41C for ; Wed, 27 Mar 2002 21:15:24 -0800 (PST) Message-ID: <20020328051522.8766.qmail@web20405.mail.yahoo.com> Received: from [210.21.6.34] by web20405.mail.yahoo.com via HTTP; Wed, 27 Mar 2002 21:15:22 PST Date: Wed, 27 Mar 2002 21:15:22 -0800 (PST) From: huang wen hui Subject: the bug of freebsd-commapi To: ari.suutari@syncrontech.com Cc: java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, I may found two bugs of native freebsd-commapi: 1. SerialPort.getName() always return null. fix: --- FreebsdSerial.java.org Tue Mar 26 13:37:30 2002 +++ FreebsdSerial.java Tue Mar 26 13:41:14 2002 @@ -47,7 +47,7 @@ private int parity = SerialPort.PARITY_NONE; private int flowcontrol = SerialPort.FLOWCONTROL_NONE; private int sd = -1; - private String name = null; + //private String name = null; private int ibs = 1024; private int obs = 1024; private int framing = -1; 2. SerialPort.setFlowControlMode() not work. It look s like "native void deviceSetFlowControl()" not properly works. I read data from serial port(9000,N,8,1, no flowControl). Before call setFlowControlMode(SerialPort.FLOWCONTROL_NONE), it works fine; after call, it does NOT work. --hwh __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message