MindTerm 2.3.1 with Java 1.4.1: Source diffs
Christian Eitner
Christian.Eitner@cern.ch
Mon, 3 Mar 2003 13:05:24 +0100
Okay people,
This seems to have been a topic on this list before, but I just want to post the diffs I had to make to the source code of 2.3.1 to make it run with JDK 1.4.1 under Linux. Not thoroughly tested though whether everything works (what about a test suite?):
cvs diff -r1.1 -r1.4 SSHSocketImpl.java
Index: SSHSocketImpl.java
===================================================================
RCS file: MindTerm/com/mindbright/ssh/SSHSocketImpl.java,v
retrieving revision 1.1
retrieving revision 1.4
diff -r1.1 -r1.4
76a77,85
> protected void connect(SocketAddress address, int timeout) throws IOException {
> if (address instanceof InetSocketAddress) {
> InetSocketAddress inetSocketAddress = (InetSocketAddress)address;
> this.connect(inetSocketAddress.getAddress().getHostAddress(), inetSocketAddress.getPort());
> } else {
> throw new IOException("Unknown address type.");
> }
> }
>
84c93
< cnQueue.setMaxDepth(backlog);
---
> cnQueue.setDepth(backlog);
162c171,173
<
---
> protected void sendUrgentData(int data) throws IOException {
> throw new IOException("Sorry, this method had not been implemented, and I don't know how to do it. I guess it shouldn't be used.");
> }
Christian
--
Christian Eitner | Section AB/CO/IN
CERN (Conseil Européen pour | Bâtiment 936-R-054
la Recherche Nucleaire) | CH-1211 Genève 23
Suisse/Switzerland |
|
The Cyan Jaguar Project: | +41 22 76-72092
http://cern.ch/CyanJaguar | Christian.Eitner@cern.ch